diff options
author | danglassey <danglassey> | 2002-08-14 09:57:17 +0000 |
---|---|---|
committer | danglassey <danglassey> | 2002-08-14 09:57:17 +0000 |
commit | daa67ff1f728c07f2a116ee9a9f4505479ca6808 (patch) | |
tree | c224a537d30480002ae0560cc9104b543b4d1b5e /bindings/swig/swmgr.i | |
parent | 6d6973e035aac5ec1676efccd5b8ada70c40b639 (diff) | |
download | sword-sf-cvs-import-1.1.1.tar.gz |
Initial import from crosswire CVS for syncingimport-1.1.1
Diffstat (limited to 'bindings/swig/swmgr.i')
-rw-r--r-- | bindings/swig/swmgr.i | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/bindings/swig/swmgr.i b/bindings/swig/swmgr.i new file mode 100644 index 0000000..a50c8fe --- /dev/null +++ b/bindings/swig/swmgr.i @@ -0,0 +1,41 @@ +%{ +#include <swmgr.h> +%} + +typedef map < string, SWModule *, less < string > > ModMap; +typedef list < string > OptionsList; +typedef map < string, SWFilter * > FilterMap; + +class SWMgr { +public: +//member data + static bool debug; + static const char *globalConfPath; + static void findConfig (char *configType, char **prefixPath, char **configPath); + + SWConfig *config; + SWConfig *sysconfig; + ModMap Modules; + char *prefixPath; + char *configPath; + +//member functions + SWMgr (SWConfig* iconfig = 0, SWConfig* isysconfig = 0, bool autoload = true, SWFilterMgr* filterMgr = 0); +// SWMgr (SWFilterMgr *filterMgr); +// SWMgr (const char *iConfigPath, bool autoload = true, SWFilterMgr *filterMgr = 0); + virtual ~SWMgr(); + + virtual signed char Load (); + virtual void setGlobalOption (const char *option, const char *value); + virtual const char *getGlobalOption (const char *option); + virtual const char *getGlobalOptionTip (const char *option); + virtual OptionsList getGlobalOptions (); + virtual OptionsList getGlobalOptionValues (const char *option); + virtual signed char setCipherKey (const char *modName, const char *key); + +%extend { + SWModule* module(const char* modulename) { + return self->Modules[modulename]; + }; +} +}; |