00001 #ifndef _CONFIGITEM_H
00002 #define _CONFIGITEM_H
00003
00004 #include "utils.h"
00005 #include <string>
00006
00009 class ConfigItem
00010 {
00011 public:
00013 ConfigItem(std::string val) : m_value(val) {}
00018 void set(std::string const val) { m_value = val; }
00019
00024 const std::string get() const { return m_value; }
00025
00030 template<typename A>
00031 const A get() const { return convertTo<std::string, A>(m_value); }
00032
00033 private:
00034 std::string m_value;
00035
00036 };
00037
00038 #endif