2 // Created: 12 Aug 2014
3 // Author: Vitaly SMETANNIKOV
8 #include "Config_def.h"
13 /// Class which describes a one property
44 * Creates a one property
45 * \param theSection - name of section (domain of using) of the property.
46 * \param theName - name (title) of the value.
47 * \param theType - type of the value.
48 * \param theDefaultValue - default value of the property. This is an initial property value
50 Config_Prop(const std::string& theSection, const std::string& theName,
51 const std::string& theTitle, PropType theType, const std::string& theDefaultValue)
53 mySection = theSection;
57 myValue = theDefaultValue;
58 myDefaultValue = theDefaultValue;
61 std::string section() const
65 std::string name() const
70 std::string title() const
74 void setTitle(const std::string& theTitle)
83 void setType(PropType theType)
88 std::string value() const
93 CONFIG_EXPORT void setValue(const std::string& theValue);
95 std::string defaultValue() const
97 return myDefaultValue;
100 CONFIG_EXPORT void setDefaultValue(const std::string& theValue);
102 bool operator==(const Config_Prop* theProp) const
104 return (mySection == theProp->section()) && (myName == theProp->name());
108 std::string mySection;
113 std::string myDefaultValue;
116 typedef std::list<Config_Prop*> Config_Properties;