$search

castor::ConfigNode Class Reference

#include <Configuration.h>

List of all members.

Public Types

enum  Type { Node = 0, Leaf = 1, Comment = 2 }

Public Member Functions

 ConfigNode (const ConfigNode &other)
 ConfigNode (std::string name, boost::any &value)
 ConfigNode (Type type, std::string name)
 ConfigNode (std::string name)
ConfigNodecreate (std::string name, boost::any &value)
ConfigNodecreate (Type type, std::string name)
ConfigNodecreate (std::string name)
std::vector< ConfigNodePtr > * getChildren ()
int getDepth () const
const std::string & getName () const
ConfigNodegetParent ()
Type getType () const
const boost::any & getValue () const
ConfigNodeoperator= (const ConfigNode &other)
void setParent (ConfigNode *parent)
void setValue (boost::any &value)
 ~ConfigNode ()

Protected Attributes

std::vector< ConfigNodePtrchildren
int depth
std::string name
ConfigNodeparent
Type type
boost::any value

Detailed Description

Definition at line 58 of file Configuration.h.


Member Enumeration Documentation

Enumerator:
Node 
Leaf 
Comment 

Definition at line 62 of file Configuration.h.


Constructor & Destructor Documentation

castor::ConfigNode::ConfigNode ( std::string  name  )  [inline]

Definition at line 79 of file Configuration.h.

castor::ConfigNode::ConfigNode ( Type  type,
std::string  name 
) [inline]

Definition at line 84 of file Configuration.h.

castor::ConfigNode::ConfigNode ( std::string  name,
boost::any &  value 
) [inline]

Definition at line 89 of file Configuration.h.

castor::ConfigNode::ConfigNode ( const ConfigNode other  )  [inline]

Definition at line 94 of file Configuration.h.

castor::ConfigNode::~ConfigNode (  )  [inline]

Definition at line 100 of file Configuration.h.


Member Function Documentation

ConfigNode* castor::ConfigNode::create ( std::string  name,
boost::any &  value 
) [inline]

Definition at line 116 of file Configuration.h.

ConfigNode* castor::ConfigNode::create ( Type  type,
std::string  name 
) [inline]

Definition at line 110 of file Configuration.h.

ConfigNode* castor::ConfigNode::create ( std::string  name  )  [inline]

Definition at line 104 of file Configuration.h.

std::vector<ConfigNodePtr>* castor::ConfigNode::getChildren (  )  [inline]

Definition at line 122 of file Configuration.h.

int castor::ConfigNode::getDepth (  )  const [inline]

Definition at line 147 of file Configuration.h.

const std::string& castor::ConfigNode::getName (  )  const [inline]

Definition at line 143 of file Configuration.h.

ConfigNode* castor::ConfigNode::getParent (  )  [inline]

Definition at line 126 of file Configuration.h.

Type castor::ConfigNode::getType (  )  const [inline]

Definition at line 151 of file Configuration.h.

const boost::any& castor::ConfigNode::getValue (  )  const [inline]

Definition at line 135 of file Configuration.h.

ConfigNode& castor::ConfigNode::operator= ( const ConfigNode other  )  [inline]

Definition at line 155 of file Configuration.h.

void castor::ConfigNode::setParent ( ConfigNode parent  )  [inline]

Definition at line 130 of file Configuration.h.

void castor::ConfigNode::setValue ( boost::any &  value  )  [inline]

Definition at line 139 of file Configuration.h.


Member Data Documentation

std::vector<ConfigNodePtr> castor::ConfigNode::children [protected]

Definition at line 73 of file Configuration.h.

int castor::ConfigNode::depth [protected]

Definition at line 74 of file Configuration.h.

std::string castor::ConfigNode::name [protected]

Definition at line 70 of file Configuration.h.

Definition at line 72 of file Configuration.h.

Definition at line 75 of file Configuration.h.

boost::any castor::ConfigNode::value [protected]

Definition at line 71 of file Configuration.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Castor
Author(s): Carpe Noctem
autogenerated on Fri Mar 1 14:41:51 2013