Singleton class providing a unique access point to the configuration items tree. More...
#include <OBTConfigurationTree.h>
Public Member Functions | |
const ConfigurationItem & | getRoot () const |
accessor to the root of the configuration tree | |
void | addChild (const ConfigurationItem &child) |
add a child to the root | |
Private Member Functions | |
ConfigurationTree () | |
constructor | |
ConfigurationTree (const ConfigurationTree &ConfigurationTree) | |
copy constructor, protected and not defined to prevent from copying. | |
const ConfigurationTree & | operator= (const ConfigurationTree &ConfigurationTree) |
assigment operator, protected and not defined to prevent from copying. | |
virtual | ~ConfigurationTree () |
destructor | |
ConfigurationItem & | touchRoot () |
allows AbstractConfigurationFileParser to access _parametersRoot | |
Private Attributes | |
ConfigurationItem | _parametersRoot |
root of the configuration items | |
Friends | |
class | Singleton< ConfigurationTree > |
class | AbstractConfigurationFileParser |
Singleton class providing a unique access point to the configuration items tree.
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] |
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 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 }
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 AbstractConfigurationFileParser [friend] |
Definition at line 23 of file OBTConfigurationTree.h.
friend class Singleton< ConfigurationTree > [friend] |
Definition at line 22 of file OBTConfigurationTree.h.
root of the configuration items
Definition at line 66 of file OBTConfigurationTree.h.
Referenced by addChild(), getRoot(), and touchRoot().