|
gem5
|
A single key/value pair. More...
#include <inifile.hh>
Public Member Functions | |
| Entry (const std::string &v) | |
| Constructor. More... | |
| bool | isReferenced () |
| Has this entry been used? More... | |
| const std::string & | getValue () const |
| Fetch the value. More... | |
| void | setValue (const std::string &v) |
| Set the value. More... | |
| void | appendValue (const std::string &v) |
| Append the given string to the value. More... | |
Private Attributes | |
| std::string | value |
| The entry value. More... | |
| bool | referenced |
| Has this entry been used? More... | |
A single key/value pair.
Definition at line 61 of file inifile.hh.
|
inline |
Constructor.
Definition at line 68 of file inifile.hh.
|
inline |
Append the given string to the value.
A space is inserted between the existing value and the new value. Since this operation is typically used with values that are space-separated lists of tokens, this keeps the tokens separate.
Definition at line 87 of file inifile.hh.
| const string & IniFile::Entry::getValue | ( | ) | const |
Fetch the value.
Definition at line 71 of file inifile.cc.
Referenced by IniFile::find(), and IniFile::Section::printUnreferenced().
|
inline |
Has this entry been used?
Definition at line 74 of file inifile.hh.
References referenced.
Referenced by IniFile::Section::printUnreferenced().
|
inline |
|
mutableprivate |
|
private |
The entry value.
Definition at line 63 of file inifile.hh.
Referenced by appendValue(), and setValue().