- std::string section() const { return mySection; }
- std::string name() const { return myName; }
- std::string title() const { return myTitle; }
- PropType type() const { return myType; }
- std::string value() const { return myValue; }
+ /// Get name of section
+ std::string section() const
+ {
+ return mySection;
+ }
+ /// Get name of property
+ std::string name() const
+ {
+ return myName;
+ }
+ /// Get title of property
+ std::string title() const
+ {
+ return myTitle;
+ }
+ /// Set title of property
+ void setTitle(const std::string& theTitle)
+ {
+ myTitle = theTitle;
+ }
+ /// Get type of property
+ PropType type() const
+ {
+ return myType;
+ }
+ /// Set type of property
+ void setType(PropType theType)
+ {
+ myType = theType;
+ }
+ /// Get property's value in string format
+ std::string value() const
+ {
+ return myValue;
+ }
+ /// Set property's value in string format
+ CONFIG_EXPORT void setValue(const std::string& theValue);
+ /// Get default value of property
+ std::string defaultValue() const
+ {
+ return myDefaultValue;
+ }
+ /// Set default value of property
+ CONFIG_EXPORT void setDefaultValue(const std::string& theValue);
+ /// Alows to compare Config_Prop with each other
+ bool operator==(const Config_Prop* theProp) const
+ {
+ return (mySection == theProp->section()) && (myName == theProp->name());
+ }