Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef CUPT_CONFIG_SEEN
00019 #define CUPT_CONFIG_SEEN
00020
00022
00023 #include <cupt/common.hpp>
00024
00025 namespace cupt {
00026
00027 namespace internal {
00028
00029 struct ConfigImpl;
00030
00031 }
00032
00034 class CUPT_API Config
00035 {
00036 internal::ConfigImpl* __impl;
00037 public:
00039
00042 Config();
00044 virtual ~Config();
00045
00047 Config(const Config& other);
00049 Config& operator=(const Config& other);
00050
00052 vector< string > getScalarOptionNames() const;
00054 vector< string > getListOptionNames() const;
00055
00057
00061 void setScalar(const string& optionName, const string& value);
00063
00067 void setList(const string& optionName, const string& value);
00068
00070
00073 vector< string > getList(const string& optionName) const;
00075
00078 string getString(const string& optionName) const;
00080
00083 bool getBool(const string& optionName) const;
00085
00088 ssize_t getInteger(const string& optionName) const;
00090
00093 string getPath(const string& optionName) const;
00094 };
00095
00096 }
00097
00098 #endif
00099