91 static PluginManager& getInstance();
93 void loadAuto(
bool late);
95 bool load(
const char* libnm);
102 {
return src != AppDir && src !=
None; }
124 const Data* findDataWithDispName(
const char*)
const;
126 bool isPresent(
const char*)
const;
127 const char* userName(
const char*)
const;
131 static const char* moduleName(
const char*);
133 const char* getFileName(
const Data&)
const;
136 {
return usr ? userlibdir_ : applibdir_; }
138 static const char*
sKeyDontLoad() {
return "dTect.Dont load plugins"; }
152 Data* fndData(
const char*)
const;
154 void getALOEntries(
const char*,
bool);
155 void openALOEntries();
#define mExpClass(module)
Definition: commondefs.h:160
~Data()
Definition: plugins.h:111
const char * getAutoDir(bool usr) const
Definition: plugins.h:135
Plugin manager - loads plugins: shared libs or DLLs.
Definition: plugins.h:85
#define mGlobal(module)
Definition: commondefs.h:163
static const char * sKeyDontLoad()
Definition: plugins.h:138
Data(const char *nm)
Definition: plugins.h:104
BufferString userlibdir_
Definition: plugins.h:149
Data * findData(const char *nm)
Definition: plugins.h:122
Definition: plugins.h:100
Set of BufferString objects.
Definition: bufstringset.h:28
BufferString appdir_
Definition: plugins.h:148
ObjectSet< Data > & getData()
Definition: plugins.h:121
FixedString None()
Definition: keystrs.h:90
int LoadPlugin(const char *libnm)
BufferString applibdir_
Definition: plugins.h:150
Set of pointers to objects.
Definition: commontypes.h:32
BufferString userdir_
Definition: plugins.h:147
const Data * findData(const char *nm) const
Definition: plugins.h:123
#define PI_AUTO_INIT_NONE
Definition: pluginbase.h:30
ObjectSet< Data > data_
Definition: plugins.h:145
Gives access to shared libs on runtime. Plugins should be loaded via the Plugin Manager (see plugins...
Definition: sharedlibs.h:30
SharedLibAccess * sla_
Definition: plugins.h:117
BufferString name_
Definition: plugins.h:113
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
void LoadAutoPlugins(int inittype)
Information about plugin for outside world.
Definition: pluginbase.h:52
int autotype_
Definition: plugins.h:116
AutoSource
Definition: plugins.h:100
static bool isUserDir(AutoSource src)
Definition: plugins.h:101
const PluginInfo * info_
Definition: plugins.h:114
bool isloaded_
Definition: plugins.h:118
AutoSource autosource_
Definition: plugins.h:115