Public Member Functions | |
| OFConfigFileNode (const char *keyword) | |
| constructor. | |
| ~OFConfigFileNode () | |
| destructor, recursively deletes whole tree | |
| const char * | getKeyword () const |
| return keyword as C string | |
| const char * | getValue () const |
| return current value as C string | |
| void | setValue (const char *c) |
| set value from C string | |
| OFBool | match (const char *c) const |
| check if keyword matches given string | |
| OFBool | less (const char *c) const |
| check if keyword compares "<" to given string | |
| OFConfigFileNode * | getBrother () const |
| return pointer to next object in tree on same level | |
| OFConfigFileNode * | getSon () const |
| return pointer to next object in tree on lower level | |
| void | setBrother (OFConfigFileNode *brother) |
| set pointer to next object in tree on same level | |
| void | setSon (OFConfigFileNode *son) |
| set pointer to next object in tree on lower level | |
| void | print (STD_NAMESPACE ostream &out, unsigned int level) |
| print the content of this node to an output stream | |
Private Member Functions | |
| OFConfigFileNode (const OFConfigFileNode &arg) | |
| private undefined copy constructor | |
| OFConfigFileNode & | operator= (const OFConfigFileNode &arg) |
| private undefined copy assignment operator | |
Private Attributes | |
| OFConfigFileNode * | brother_ |
| pointer to next object in tree on same level | |
| OFConfigFileNode * | son_ |
| pointer to next object in tree on lower level | |
| OFString | keyword_ |
| configuration keyword | |
| OFString | value_ |
| configuration value | |
Internal use only.
Definition at line 79 of file ofconfig.h.
| OFConfigFileNode::OFConfigFileNode | ( | const char * | keyword | ) |
constructor.
| keyword | configuration keyword, copied into this object |
| void OFConfigFileNode::setValue | ( | const char * | c | ) | [inline] |
set value from C string
| c | C string, must not be NULL |
Definition at line 107 of file ofconfig.h.
References value_.
| OFBool OFConfigFileNode::match | ( | const char * | c | ) | const [inline] |
check if keyword matches given string
| c | C string, must not be NULL |
Definition at line 116 of file ofconfig.h.
References keyword_.
| OFBool OFConfigFileNode::less | ( | const char * | c | ) | const [inline] |
check if keyword compares "<" to given string
| c | C string, must not be NULL |
Definition at line 125 of file ofconfig.h.
References keyword_.
| OFConfigFileNode* OFConfigFileNode::getBrother | ( | ) | const [inline] |
return pointer to next object in tree on same level
Definition at line 133 of file ofconfig.h.
References brother_.
| OFConfigFileNode* OFConfigFileNode::getSon | ( | ) | const [inline] |
return pointer to next object in tree on lower level
Definition at line 141 of file ofconfig.h.
References son_.
| void OFConfigFileNode::setBrother | ( | OFConfigFileNode * | brother | ) | [inline] |
set pointer to next object in tree on same level
| brother | pointer to next object in tree |
Definition at line 149 of file ofconfig.h.
References brother_.
| void OFConfigFileNode::setSon | ( | OFConfigFileNode * | son | ) | [inline] |
set pointer to next object in tree on lower level
| son | pointer to next object in tree |
Definition at line 157 of file ofconfig.h.
References son_.
| void OFConfigFileNode::print | ( | STD_NAMESPACE ostream & | out, | |
| unsigned int | level | |||
| ) |
print the content of this node to an output stream
| out | output stream to print to | |
| level | tree depth (level) |