#include <OBTConfigurationTree.h>
Public Member Functions | |
const ConfigurationItem & | getRoot () const |
void | addChild (const ConfigurationItem &child) |
Private Member Functions | |
ConfigurationTree () | |
ConfigurationTree (const ConfigurationTree &ConfigurationTree) | |
const ConfigurationTree & | operator= (const ConfigurationTree &ConfigurationTree) |
virtual | ~ConfigurationTree () |
ConfigurationItem & | touchRoot () |
Private Attributes | |
ConfigurationItem | _parametersRoot |
root of the configuration items | |
Friends | |
class | Singleton< ConfigurationTree > |
class | AbstractConfigurationFileParser |
At the very beginnning of the application, this singleton is filled with the configuration items tree loaded by the configuration file parser.
Definition at line 18 of file OBTConfigurationTree.h.
ConfigurationTree::ConfigurationTree | ( | ) | [private] |
constructor
Definition at line 8 of file OBTConfigurationTree.cpp.
00009 : 00010 _parametersRoot( "ROOT" ) 00011 { 00012 }
OBT::ConfigurationTree::ConfigurationTree | ( | const ConfigurationTree & | ConfigurationTree | ) | [private] |
copy constructor, protected and not defined to prevent from copying.
ConfigurationTree::~ConfigurationTree | ( | ) | [private, virtual] |
const ConfigurationItem & OBT::ConfigurationTree::getRoot | ( | ) | const [inline] |
accessor to the root of the configuration tree
Definition at line 75 of file OBTConfigurationTree.h.
References _parametersRoot.
00076 { 00077 return _parametersRoot ; 00078 }
void OBT::ConfigurationTree::addChild | ( | const ConfigurationItem & | child | ) | [inline] |
add a child to the root
child | const reference to the child to add |
Definition at line 84 of file OBTConfigurationTree.h.
References _parametersRoot, and OBT::ConfigurationItem::addChild().
00085 { 00086 _parametersRoot.addChild( child ) ; 00087 }
const ConfigurationTree& OBT::ConfigurationTree::operator= | ( | const ConfigurationTree & | ConfigurationTree | ) | [private] |
assigment operator, protected and not defined to prevent from copying.
ConfigurationItem & OBT::ConfigurationTree::touchRoot | ( | ) | [inline, private] |
allows AbstractConfigurationFileParser to access _parametersRoot
Definition at line 93 of file OBTConfigurationTree.h.
References _parametersRoot.
00094 { 00095 return _parametersRoot ; 00096 }
friend class Singleton< ConfigurationTree > [friend] |
Definition at line 22 of file OBTConfigurationTree.h.
friend class AbstractConfigurationFileParser [friend] |
Definition at line 23 of file OBTConfigurationTree.h.
root of the configuration items
Definition at line 66 of file OBTConfigurationTree.h.
Referenced by addChild(), getRoot(), and touchRoot().