%include %include %include %include #ifdef SWIGPYTHON %include #else %include "local/std_multimap.i" #endif %include /* Include SWModule and DirEntry here, so that it will be able to appear below */ %{ #include "swmodule.h" #include "filemgr.h" #include "swconfig.h" %} /* These are the stl templates that are used throughout Sword. Some have more than one name in Sword, depending on context. However, these are all wrapped with the one class. For example, sword::AttributeValueMap is the same as sword::ConfigEntMap Both are wrapped as the former, however */ %inline %{ typedef std::map< sword::SWBuf, sword::SWBuf > AttributeValueMap; typedef std::map< sword::SWBuf, AttributeValueMap> AttributeListMap; typedef std::map< sword::SWBuf, AttributeListMap> AttributeTypeListMap; typedef std::multimap < sword::SWBuf, sword::SWBuf, std::less < sword::SWBuf > > PyConfigEntMap; typedef std::map < sword::SWBuf, PyConfigEntMap > PySectionMap; %} /* Used by SWModule and SWConfig */ %template() std::pair ; %template(AttributeValueMap) std::map < sword::SWBuf, sword::SWBuf >; /* Used by SWModule */ %template() std::pair ; %template(AttributeListMap) std::map < sword::SWBuf, AttributeValueMap>; %template() std::pair < sword::SWBuf, AttributeListMap>; %template(AttributeTypeListMap) std::map < sword::SWBuf, AttributeListMap>; /* Used by SWConfig */ #ifdef SWIGPYTHON %template(PyConfigEntMap) std::multimap < sword::SWBuf, sword::SWBuf, std::less >; #endif /* %template() std::less ;*/ %template() std::pair < sword::SWBuf, std::multimap < sword::SWBuf, sword::SWBuf > >/*PyConfigEntMap >*/; %template(PySectionMap) std::map < sword::SWBuf, std::multimap < sword::SWBuf, sword::SWBuf > >/*std::map < sword::SWBuf, PyConfigEntMap >*/; /* Used by SWMgr */ %template() std::pair; %template(ModuleMap) std::map; /* Used by SWMgr and LocaleMgr */ %template(StringVector) std::vector < sword::SWBuf >; /* Used by xmltag */ %template(StringList) std::list < sword::SWBuf >; /* Used by InstallMgr */ #ifndef EXCLUDE_INSTALLMGR %{ #include "installmgr.h" %} %template() std::pair; %template(InstallSourceMap) std::map; %template() std::pair; %template() std::map; #endif /* Used by DirEntry */ %template(DirEntryVector) std::vector < sword::DirEntry > ;