1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
4 // Created: 12 Aug 2014
5 // Author: Vitaly SMETANNIKOV
10 #include "Config_def.h"
15 /// Class which describes a one property
47 * Creates a one property
48 * \param theSection - name of section (domain of using) of the property.
49 * \param theName - name (title) of the value.
50 * \param theType - type of the value.
51 * \param theDefaultValue - default value of the property. This is an initial property value
53 Config_Prop(const std::string& theSection, const std::string& theName,
54 const std::string& theTitle, PropType theType, const std::string& theDefaultValue)
56 mySection = theSection;
60 myValue = theDefaultValue;
61 myDefaultValue = theDefaultValue;
64 std::string section() const
68 std::string name() const
73 std::string title() const
77 void setTitle(const std::string& theTitle)
86 void setType(PropType theType)
91 std::string value() const
96 CONFIG_EXPORT void setValue(const std::string& theValue);
98 std::string defaultValue() const
100 return myDefaultValue;
103 CONFIG_EXPORT void setDefaultValue(const std::string& theValue);
105 bool operator==(const Config_Prop* theProp) const
107 return (mySection == theProp->section()) && (myName == theProp->name());
111 std::string mySection;
116 std::string myDefaultValue;
119 typedef std::list<Config_Prop*> Config_Properties;