2 // Created: 12 Aug 2014
3 // Author: Vitaly SMETANNIKOV
8 #include "Config_def.h"
13 /// Class which describes a one property
45 * Creates a one property
46 * \param theSection - name of section (domain of using) of the property.
47 * \param theName - name (title) of the value.
48 * \param theType - type of the value.
49 * \param theDefaultValue - default value of the property. This is an initial property value
51 Config_Prop(const std::string& theSection, const std::string& theName,
52 const std::string& theTitle, PropType theType, const std::string& theDefaultValue)
54 mySection = theSection;
58 myValue = theDefaultValue;
59 myDefaultValue = theDefaultValue;
62 std::string section() const
66 std::string name() const
71 std::string title() const
75 void setTitle(const std::string& theTitle)
84 void setType(PropType theType)
89 std::string value() const
94 CONFIG_EXPORT void setValue(const std::string& theValue);
96 std::string defaultValue() const
98 return myDefaultValue;
101 CONFIG_EXPORT void setDefaultValue(const std::string& theValue);
103 bool operator==(const Config_Prop* theProp) const
105 return (mySection == theProp->section()) && (myName == theProp->name());
109 std::string mySection;
114 std::string myDefaultValue;
117 typedef std::list<Config_Prop*> Config_Properties;