summaryrefslogtreecommitdiff
path: root/bindings/swig/swconfig.i
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/swig/swconfig.i')
-rw-r--r--bindings/swig/swconfig.i43
1 files changed, 0 insertions, 43 deletions
diff --git a/bindings/swig/swconfig.i b/bindings/swig/swconfig.i
deleted file mode 100644
index 06d3647..0000000
--- a/bindings/swig/swconfig.i
+++ /dev/null
@@ -1,43 +0,0 @@
-%{
-#include <stdio.h>
-#include <string>
-#include <map>
-#include <defs.h>
-#include <multimapwdef.h>
-#include "swconfig.h"
-
-using namespace sword;
-using namespace std;
-%}
-
-%include "std_vector.i"
-%include "std_string.i"
-%include "typemaps.i"
-
-
-typedef multimapwithdefault < SWBuf, SWBuf, less < SWBuf > > ConfigEntMap;
-typedef map < SWBuf, ConfigEntMap, less < SWBuf > > SectionMap;
-
-class SWConfig {
-public:
- //member data
- SWBuf filename;
- SectionMap Sections;
-
- //member functions
- SWConfig(const char *ifilename);
- virtual ~ SWConfig();
-
- virtual void Load();
- virtual void Save();
-
-%extend {
- void set(const char* group, const char* entry, const char* value) {
- self->Sections[group][entry] = value;
- };
- const char* get(const char* group, const char* entry) {
- return self->Sections[group][entry].c_str();
- };
-}
-
-};