diff options
author | Florian Jung <flo@thinkpad.(none)> | 2011-02-27 18:48:35 +0100 |
---|---|---|
committer | Florian Jung <flo@thinkpad.(none)> | 2011-02-27 18:48:35 +0100 |
commit | dacd393fefeabafd1306533dd6c5a56e0ab347cc (patch) | |
tree | dd3d0ed19a9490109a890df2c07634a6b823d1ff /TConfigReadOnly.h |
Initial commit
Diffstat (limited to 'TConfigReadOnly.h')
-rw-r--r-- | TConfigReadOnly.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/TConfigReadOnly.h b/TConfigReadOnly.h new file mode 100644 index 0000000..4d6e986 --- /dev/null +++ b/TConfigReadOnly.h @@ -0,0 +1,26 @@ +#ifndef _TCONFIGREADONLY_H_ +#define _TCONFIGREADONLY_H_ + +#include <iostream> +#include <string> + +using namespace std; + +class TConfigReadOnly +{ + public: + virtual int get_integer(string name)=0; + virtual string get_string(string name)=0; + virtual bool get_boolean(string name)=0; + + virtual int get_valid_integer(string name, int def)=0; + virtual string get_valid_string(string name, string def)=0; + virtual bool get_valid_boolean(string name, bool def)=0; + + virtual bool is_stored(string name)=0; + + virtual bool is_string(string name)=0; + virtual bool is_integer(string name)=0; + virtual bool is_boolean(string name)=0; +}; +#endif |