#include <XANAConfigFileLine.h>
Public Methods | |
XANAConfigFileLine (const std::string &option, const std::string &value="") | |
Constructor with name of the option and a single option value (no list!). More... | |
virtual | ~XANAConfigFileLine () |
Destructor: Does currently nothing. More... | |
void | append (const XANAConfigFileLine &other) |
Append the option name of another ConfigFileLine as value. More... | |
void | appendList (const XANAConfigFileLine &other) |
Append the values of another ConfigFileLine. More... | |
bool | isOption (const std::string &name) const |
Check whether name of option is "name". More... | |
bool | isDefined () const |
Check whether the option line has a name, i.e. is defined. More... | |
std::list< std::string > | getValues () const |
Return the list of configuration values. More... | |
void | setValues (const std::list< std::string > &v) |
Sets the list of configuration values. More... | |
const std::string & | getOptionName () const |
Get option name. More... | |
void | setScope (const std::string &scope) |
Sets the scope by prepending "scope":: to the option name. More... | |
void | print () const |
Print the contents of the rule to stdout. More... | |
Private Types | |
typedef std::list< std::string >::const_iterator | ValueIterator |
For convinience a ValueIterator type is defined which walks along the list of option strings. More... | |
Private Attributes | |
std::string | option |
The name of the option. More... | |
std::list< std::string > | values |
The list of option values. More... |
|
For convinience a ValueIterator type is defined which walks along the list of option strings.
Definition at line 70 of file XANAConfigFileLine.h. |
|
Constructor with name of the option and a single option value (no list!).
|
|
Destructor: Does currently nothing.
|
|
Append the option name of another ConfigFileLine as value.
|
|
Append the values of another ConfigFileLine.
|
|
Get option name.
Definition at line 53 of file XANAConfigFileLine.h. References option.
00053 { 00054 return option; 00055 } |
|
Return the list of configuration values.
Definition at line 42 of file XANAConfigFileLine.h. References values.
00042 { 00043 // This operation is somewhat time-consuming! 00044 return values; 00045 } |
|
Check whether the option line has a name, i.e. is defined.
Definition at line 37 of file XANAConfigFileLine.h. References option.
00037 { 00038 return option.length(); 00039 } |
|
Check whether name of option is "name".
Definition at line 32 of file XANAConfigFileLine.h. References option.
00032 { 00033 return name==option; 00034 } |
|
Print the contents of the rule to stdout.
|
|
Sets the scope by prepending "scope":: to the option name.
|
|
Sets the list of configuration values.
Definition at line 48 of file XANAConfigFileLine.h. References values.
00048 { 00049 values=v; 00050 } |
|
The name of the option.
Definition at line 65 of file XANAConfigFileLine.h. Referenced by getOptionName, isDefined, and isOption. |
|
The list of option values.
Definition at line 66 of file XANAConfigFileLine.h. |