6
typedef map < SWBuf, SWModule *, less < SWBuf > > ModMap;
7
typedef list < SWBuf > StringList;
8
typedef map < SWBuf, SWFilter * > FilterMap;
13
static void findConfig (char *configType, char **prefixPath, char **configPath);
22
SWMgr (SWConfig* iconfig = 0, SWConfig* isysconfig = 0, bool autoload = true, SWFilterMgr* filterMgr = 0);
23
SWMgr(const char *iConfigPath, bool autoload = true, SWFilterMgr *filterMgr = 0);
26
virtual signed char Load ();
27
virtual void setGlobalOption (const char *option, const char *value);
28
virtual const char *getGlobalOption (const char *option);
29
virtual const char *getGlobalOptionTip (const char *option);
30
virtual StringList getGlobalOptions ();
31
virtual StringList getGlobalOptionValues (const char *option);
32
virtual signed char setCipherKey (const char *modName, const char *key);
34
SWModule *getModule(const char *modName);
35
virtual void InstallScan(const char *dir);
38
const int moduleCount() {
39
return self->Modules.size();
42
SWModule* getModuleAt( const int pos ) {
43
if (pos < 0 || pos > self->Modules.size() )
46
ModMap::iterator it = self->Modules.begin();
48
for (int i = 0; i < pos; ++i) {
52
if ( it != self->Modules.end() ) {