summaryrefslogtreecommitdiff
path: root/bindings/swig/package/swconfig.i
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/swig/package/swconfig.i')
-rw-r--r--bindings/swig/package/swconfig.i8
1 files changed, 4 insertions, 4 deletions
diff --git a/bindings/swig/package/swconfig.i b/bindings/swig/package/swconfig.i
index b1f6834..4479093 100644
--- a/bindings/swig/package/swconfig.i
+++ b/bindings/swig/package/swconfig.i
@@ -5,21 +5,21 @@
%ignore sword::SWConfig::operator[];
%ignore sword::SWConfig::operator+=;
%ignore sword::SWConfig::sections;
-%ignore sword::SWConfig::Sections;
+%ignore sword::SWConfig::getSections();
%include "swconfig.h"
%extend sword::SWConfig {
void set(const char* group, const char* entry, const char* value) {
- self->Sections[group][entry] = value;
+ self->getSection(group)[entry] = value;
};
const char* get(const char* group, const char* entry) {
- return self->Sections[group][entry].c_str();
+ return self->getSection(group)[entry].c_str();
};
PySectionMap /*std::map < sword::SWBuf, std::multimap <sword::SWBuf, sword::SWBuf> > */
*getSections() {
- return (PySectionMap* /*std::map < sword::SWBuf, std::multimap < sword::SWBuf, sword::SWBuf > > * */) &self->Sections;
+ return (PySectionMap* /*std::map < sword::SWBuf, std::multimap < sword::SWBuf, sword::SWBuf > > * */) &self->getSections();
}
}