-class ConfigItem {
-private:
- Config::ItemType _type;
- std::string _value;
-
-public:
- ConfigItem(Config::ItemType type, std::string value)
- : _type(type), _value(value) {}
- ~ConfigItem() {}
-
- inline const std::string &getStringValue() const
- { return _value; }
-
- inline int getNumberValue() const
- { return atoi(_value.c_str()); }