This class represents a normal value in the config file.
More...
#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/core/config/ConfigFileEntryValue.h>
|
| ConfigFileEntryValue (const std::string &name, const std::string &value="", bool bString=false, const std::string &additionalComment="") |
| Constructor: Initializes the entry. More...
|
|
virtual | ~ConfigFileEntryValue ()=default |
| Destructor. More...
|
|
virtual const std::string & | getFileEntry () const override |
| Returns the line as it will be stored in the config file. More...
|
|
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 different) More...
|
|
virtual const std::string & | getName () const override |
| Returns the name of the entry. More...
|
|
virtual const std::string & | getValue () const override |
| Returns the value of the entry. More...
|
|
virtual void | setComment (const std::string &comment) override |
| Changes the comment of the entry (will be placed after the value) More...
|
|
virtual void | setString (bool bString) override |
| Defines if this entry is treated as string which means some special treatment of special characters. More...
|
|
virtual void | setValue (const std::string &value) override |
| Changes the value of the entry. More...
|
|
virtual | ~ConfigFileEntry ()=default |
| Destructor. More...
|
|
virtual unsigned int | getIndex () const |
| Returns the index of the entry in a vector (used only if it is a vector) More...
|
|
|
virtual void | update () |
| Updates the string that will be stored in the file after one of it's components (name, value, comment) has changed. More...
|
|
This class represents a normal value in the config file.
orxonox::ConfigFileEntryValue::ConfigFileEntryValue |
( |
const std::string & |
name, |
|
|
const std::string & |
value = "" , |
|
|
bool |
bString = false , |
|
|
const std::string & |
additionalComment = "" |
|
) |
| |
|
inline |
Constructor: Initializes the entry.
- Parameters
-
name | The name of the entry |
value | The value of the entry |
bString | If true, the value is treated as string which means some special treatment of special characters. |
additionalComment | An optional comment that will be placed behind the value in the config file |
virtual orxonox::ConfigFileEntryValue::~ConfigFileEntryValue |
( |
| ) |
|
|
inlinevirtualdefault |
virtual const std::string& orxonox::ConfigFileEntryValue::getFileEntry |
( |
| ) |
const |
|
inlineoverridevirtual |
virtual const std::string& orxonox::ConfigFileEntryValue::getKeyString |
( |
| ) |
const |
|
inlinevirtual |
virtual const std::string& orxonox::ConfigFileEntryValue::getName |
( |
| ) |
const |
|
inlineoverridevirtual |
virtual const std::string& orxonox::ConfigFileEntryValue::getValue |
( |
| ) |
const |
|
inlineoverridevirtual |
virtual void orxonox::ConfigFileEntryValue::setComment |
( |
const std::string & |
comment | ) |
|
|
inlineoverridevirtual |
virtual void orxonox::ConfigFileEntryValue::setString |
( |
bool |
bString | ) |
|
|
inlineoverridevirtual |
Defines if this entry is treated as string which means some special treatment of special characters.
Implements orxonox::ConfigFileEntry.
virtual void orxonox::ConfigFileEntryValue::setValue |
( |
const std::string & |
value | ) |
|
|
inlineoverridevirtual |
void orxonox::ConfigFileEntryValue::update |
( |
| ) |
|
|
protectedvirtual |
std::string orxonox::ConfigFileEntryValue::additionalComment_ |
|
protected |
bool orxonox::ConfigFileEntryValue::bString_ |
|
protected |
If true, the value is treated as string which means some special treatment of special characters.
std::string orxonox::ConfigFileEntryValue::fileEntry_ |
|
protected |
The string as it will be stored in the config file.
const std::string orxonox::ConfigFileEntryValue::name_ |
|
protected |
std::string orxonox::ConfigFileEntryValue::value_ |
|
protected |
The documentation for this class was generated from the following files: