34 #ifndef _ConfigFileEntryValue_H__ 35 #define _ConfigFileEntryValue_H__ 64 , additionalComment_(additionalComment)
72 {
return this->
name_; }
75 { this->additionalComment_ = comment; this->update(); }
78 { this->value_ = value; this->update(); }
80 {
return this->value_; }
82 virtual inline void setString(
bool bString)
override 83 { this->bString_ = bString; this->update(); }
86 {
return this->fileEntry_; }
90 {
return this->
name_; }
93 virtual void update();
This class represents a normal value in the config file.
Definition: ConfigFileEntryValue.h:50
virtual void setValue(const std::string &value) override
Changes the value of the entry.
Definition: ConfigFileEntryValue.h:77
ConfigFileEntryValue(const std::string &name, const std::string &value="", bool bString=false, const std::string &additionalComment="")
Constructor: Initializes the entry.
Definition: ConfigFileEntryValue.h:61
Shared library macros, enums, constants and forward declarations for the core library ...
::std::string string
Definition: gtest-port.h:756
std::string additionalComment_
The additional comment.
Definition: ConfigFileEntryValue.h:97
std::string value_
The value.
Definition: ConfigFileEntryValue.h:96
virtual const std::string & getFileEntry() const override
Returns the line as it will be stored in the config file.
Definition: ConfigFileEntryValue.h:85
bool bString_
If true, the value is treated as string which means some special treatment of special characters...
Definition: ConfigFileEntryValue.h:99
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
#define _CoreExport
Definition: CorePrereqs.h:61
std::string fileEntry_
The string as it will be stored in the config file.
Definition: ConfigFileEntryValue.h:98
virtual void setString(bool bString) override
Defines if this entry is treated as string which means some special treatment of special characters...
Definition: ConfigFileEntryValue.h:82
virtual void setComment(const std::string &comment) override
Changes the comment of the entry (will be placed after the value)
Definition: ConfigFileEntryValue.h:74
internal::String name_
Definition: gtest.cc:2289
const std::string name_
The name of the value.
Definition: ConfigFileEntryValue.h:95
virtual const std::string & getName() const override
Returns the name of the entry.
Definition: ConfigFileEntryValue.h:71
virtual const std::string & getKeyString() const
Returns the "key" of the value (in this case it's just the name of the entry, but for vectors it's di...
Definition: ConfigFileEntryValue.h:89
This class represents an entry in the config file.
Definition: ConfigFileEntry.h:49
virtual const std::string & getValue() const override
Returns the value of the entry.
Definition: ConfigFileEntryValue.h:79