OFConfigFileNode Class Reference

this class maintains one configuration file entry (key-value pair) and the links that comprise the configuration file tree structure. More...

List of all members.

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
OFConfigFileNodegetBrother () const
 return pointer to next object in tree on same level
OFConfigFileNodegetSon () 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

Private Member Functions

 OFConfigFileNode (const OFConfigFileNode &arg)
 private undefined copy constructor
OFConfigFileNodeoperator= (const OFConfigFileNode &arg)
 private undefined copy assignment operator

Private Attributes

OFConfigFileNodebrother_
 pointer to next object in tree on same level
OFConfigFileNodeson_
 pointer to next object in tree on lower level
OFString keyword_
 configuration keyword
OFString value_
 configuration value


Detailed Description

this class maintains one configuration file entry (key-value pair) and the links that comprise the configuration file tree structure.

Internal use only.

Definition at line 80 of file ofconfig.h.


Constructor & Destructor Documentation

OFConfigFileNode::OFConfigFileNode const char *  keyword  ) 
 

constructor.

Parameters:
keyword configuration keyword, copied into this object


Member Function Documentation

OFConfigFileNode* OFConfigFileNode::getBrother  )  const [inline]
 

return pointer to next object in tree on same level

Returns:
pointer to next object, NULL if empty

Definition at line 125 of file ofconfig.h.

References brother_.

OFConfigFileNode* OFConfigFileNode::getSon  )  const [inline]
 

return pointer to next object in tree on lower level

Returns:
pointer to lower object, NULL if empty

Definition at line 133 of file ofconfig.h.

References son_.

OFBool OFConfigFileNode::match const char *  c  )  const [inline]
 

check if keyword matches given string

Parameters:
c C string, must not be NULL
Returns:
true if equal, false otherwise

Definition at line 117 of file ofconfig.h.

References keyword_.

void OFConfigFileNode::setBrother OFConfigFileNode brother  )  [inline]
 

set pointer to next object in tree on same level

Parameters:
brother pointer to next object in tree

Definition at line 141 of file ofconfig.h.

References brother_.

void OFConfigFileNode::setSon OFConfigFileNode son  )  [inline]
 

set pointer to next object in tree on lower level

Parameters:
son pointer to next object in tree

Definition at line 149 of file ofconfig.h.

References son_.

void OFConfigFileNode::setValue const char *  c  )  [inline]
 

set value from C string

Parameters:
c C string, must not be NULL

Definition at line 108 of file ofconfig.h.

References value_.


The documentation for this class was generated from the following file:


Generated on 20 Dec 2005 for OFFIS DCMTK Version 3.5.4 by Doxygen 1.4.5