diff options
author | pixel <pixel> | 2003-08-22 16:26:21 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-08-22 16:26:21 +0000 |
commit | 366d123c3a01da8fd48444794f03e89ac8e248c7 (patch) | |
tree | fa4d4f594731396ae1eb82dc86b7a1d2d5aeefcd /include/ConfigFile.h | |
parent | 23974eb093c83a5e6f7b1109e0f739ad7a870aac (diff) |
Latest changes in Baltisot...
Diffstat (limited to 'include/ConfigFile.h')
-rw-r--r-- | include/ConfigFile.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/ConfigFile.h b/include/ConfigFile.h new file mode 100644 index 0000000..8a7c34d --- /dev/null +++ b/include/ConfigFile.h @@ -0,0 +1,27 @@ +#ifndef __CONFIGFILE_H__ +#define __CONFIGFILE_H__ + +#include <Exceptions.h> +#include <Handle.h> +#include <map> + +namespace BConfigFile { + struct ltstr { + bool operator()(String s1, String s2) const { + return s1 < s2; + } + }; +}; + +typedef std::map<String, String, BConfigFile::ltstr> ConfigSectionContents; +typedef std::map<String, ConfigSectionContents, BConfigFile::ltstr> ConfigSection; + +class ConfigFile : public Base { + public: + ConfigFile(Handle *) throw (GeneralException); + ConfigSectionContents & operator[](String); + private: + ConfigSection c; +}; + +#endif |