diff options
author | Roberto C. Sanchez <roberto@connexer.com> | 2014-03-29 10:53:52 -0400 |
---|---|---|
committer | Roberto C. Sanchez <roberto@connexer.com> | 2014-03-29 10:53:52 -0400 |
commit | 148bd343f3e7e32d141f66b5b5c9b98b2975b0b3 (patch) | |
tree | 31078963b85110d57310759016e60e8d26ccb1e6 /bindings/swig/swmgr.i | |
parent | 8c8aa6b07e595cfac56838b5964ab3e96051f1b2 (diff) |
Imported Upstream version 1.5.8
Diffstat (limited to 'bindings/swig/swmgr.i')
-rw-r--r-- | bindings/swig/swmgr.i | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/bindings/swig/swmgr.i b/bindings/swig/swmgr.i deleted file mode 100644 index 2328336..0000000 --- a/bindings/swig/swmgr.i +++ /dev/null @@ -1,59 +0,0 @@ -%{ -#include <swmgr.h> -using namespace sword; -%} - -typedef map < SWBuf, SWModule *, less < SWBuf > > ModMap; -typedef list < SWBuf > StringList; -typedef map < SWBuf, SWFilter * > FilterMap; - -class SWMgr { -public: -//member data - 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(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 StringList getGlobalOptions (); - virtual StringList getGlobalOptionValues (const char *option); - virtual signed char setCipherKey (const char *modName, const char *key); - - SWModule *getModule(const char *modName); - virtual void InstallScan(const char *dir); - -%extend { - const int moduleCount() { - return self->Modules.size(); - } - - SWModule* getModuleAt( const int pos ) { - if (pos < 0 || pos > self->Modules.size() ) - return 0; - - ModMap::iterator it = self->Modules.begin(); - - for (int i = 0; i < pos; ++i) { - it++; - } - - if ( it != self->Modules.end() ) { - return (*it).second; - } - - return 0; - } -} -}; |