From dacd393fefeabafd1306533dd6c5a56e0ab347cc Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Sun, 27 Feb 2011 18:48:35 +0100 Subject: Initial commit --- TConfigReadOnly.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 TConfigReadOnly.h (limited to 'TConfigReadOnly.h') 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 +#include + +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 -- cgit v1.2.1