Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

XANAConfigFileLine Class Reference

#include <XANAConfigFileLine.h>

List of all members.

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...


Member Typedef Documentation

typedef std::list<std::string>::const_iterator XANAConfigFileLine::ValueIterator [private]
 

For convinience a ValueIterator type is defined which walks along the list of option strings.

Definition at line 70 of file XANAConfigFileLine.h.


Constructor & Destructor Documentation

XANAConfigFileLine::XANAConfigFileLine const std::string &    option,
const std::string &    value = ""
 

Constructor with name of the option and a single option value (no list!).

virtual XANAConfigFileLine::~XANAConfigFileLine   [virtual]
 

Destructor: Does currently nothing.


Member Function Documentation

void XANAConfigFileLine::append const XANAConfigFileLine &    other
 

Append the option name of another ConfigFileLine as value.

void XANAConfigFileLine::appendList const XANAConfigFileLine &    other
 

Append the values of another ConfigFileLine.

const std::string& XANAConfigFileLine::getOptionName   const [inline]
 

Get option name.

Definition at line 53 of file XANAConfigFileLine.h.

References option.

00053                                         {
00054     return option;
00055   }

std::list<std::string> XANAConfigFileLine::getValues   const [inline]
 

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   }

bool XANAConfigFileLine::isDefined   const [inline]
 

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   }

bool XANAConfigFileLine::isOption const std::string &    name const [inline]
 

Check whether name of option is "name".

Definition at line 32 of file XANAConfigFileLine.h.

References option.

00032                                             {
00033     return name==option;
00034   }

void XANAConfigFileLine::print   const
 

Print the contents of the rule to stdout.

void XANAConfigFileLine::setScope const std::string &    scope
 

Sets the scope by prepending "scope":: to the option name.

void XANAConfigFileLine::setValues const std::list< std::string > &    v [inline]
 

Sets the list of configuration values.

Definition at line 48 of file XANAConfigFileLine.h.

References values.

00048                                              {
00049     values=v;
00050   }


Member Data Documentation

std::string XANAConfigFileLine::option [private]
 

The name of the option.

Definition at line 65 of file XANAConfigFileLine.h.

Referenced by getOptionName, isDefined, and isOption.

std::list<std::string> XANAConfigFileLine::values [private]
 

The list of option values.

Definition at line 66 of file XANAConfigFileLine.h.

Referenced by getValues, and setValues.


The documentation for this class was generated from the following file:
Generated on Tue May 10 10:01:37 2005 for XANADOO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002