Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

OmniEvents::PersistNode Class Reference

#include <PersistNode.h>

List of all members.

Public Methods

 PersistNode ()
 Create an empty node. More...

 PersistNode (istream &is)
 Create root node and read tree from stream. More...

 ~PersistNode ()
 Free node and all its children. More...

void output (ostream &os, string name) const
bool readnode (istream &is)
bool readtoken (istream &is, string &tok)
PersistNode * addnode (const string &name)
void delnode (const string &name)
void addattr (const string &keyvalue)
void addattr (const string &key, long value)
bool hasAttr (const string &key) const
string attrString (const string &key, const string &fallback="") const
long attrLong (const string &key, long fallback=0) const
PersistNode * child (const string &key) const

Public Attributes

map< string, PersistNode * > _child
map< string, string > _attr

Friends

class omniEventsLog


Constructor & Destructor Documentation

OmniEvents::PersistNode::PersistNode   [inline]
 

Create an empty node.

Definition at line 51 of file PersistNode.h.

Referenced by addnode().

OmniEvents::PersistNode::PersistNode istream &    is
 

Create root node and read tree from stream.

Definition at line 32 of file PersistNode.cc.

References readnode().

OmniEvents::PersistNode::~PersistNode  
 

Free node and all its children.

Definition at line 37 of file PersistNode.cc.

References _child.


Member Function Documentation

void OmniEvents::PersistNode::addattr const string &    key,
long    value
 

Definition at line 143 of file PersistNode.cc.

References _attr.

void OmniEvents::PersistNode::addattr const string &    keyvalue
 

Definition at line 137 of file PersistNode.cc.

References _attr.

Referenced by OmniEvents::omniEventsLog::bootstrap(), and readnode().

PersistNode * OmniEvents::PersistNode::addnode const string &    name
 

Definition at line 97 of file PersistNode.cc.

References _child, and PersistNode().

Referenced by OmniEvents::omniEventsLog::bootstrap(), and readnode().

long OmniEvents::PersistNode::attrLong const string &    key,
long    fallback = 0
const
 

Definition at line 162 of file PersistNode.cc.

References _attr.

Referenced by OmniEvents::ConsumerAdmin_i::ConsumerAdmin_i(), OmniEvents::EventChannel_i::cyclePeriod_ns(), OmniEvents::EventChannel_i::maxNumProxies(), OmniEvents::EventChannel_i::maxQueueLength(), OmniEvents::omniEventsLog::parse(), OmniEvents::EventChannel_i::pullRetryPeriod_ms(), and OmniEvents::ProxyPushSupplier_i::reincarnate().

string OmniEvents::PersistNode::attrString const string &    key,
const string &    fallback = ""
const
 

Definition at line 154 of file PersistNode.cc.

References _attr.

Referenced by OmniEvents::EventChannel_i::activate(), OmniEvents::ConsumerAdmin_i::ConsumerAdmin_i(), OmniEvents::ProxyPushSupplier_i::reincarnate(), OmniEvents::ProxyPullSupplier_i::reincarnate(), and OmniEvents::ProxyPullConsumer_i::reincarnate().

PersistNode * OmniEvents::PersistNode::child const string &    key const
 

Definition at line 170 of file PersistNode.cc.

References _child.

Referenced by OmniEvents::EventChannel_i::activate(), OmniEvents::omniEventsLog::incarnateFactory(), OmniEvents::omniEventsLog::parse(), OmniEvents::SupplierAdmin_i::reincarnate(), and OmniEvents::ConsumerAdmin_i::reincarnate().

void OmniEvents::PersistNode::delnode const string &    name
 

Definition at line 118 of file PersistNode.cc.

References _child.

Referenced by readnode().

bool OmniEvents::PersistNode::hasAttr const string &    key const
 

Definition at line 150 of file PersistNode.cc.

References _attr.

Referenced by OmniEvents::ConsumerAdmin_i::ConsumerAdmin_i().

void OmniEvents::PersistNode::output ostream &    os,
string    name
const
 

Definition at line 43 of file PersistNode.cc.

References _attr, and _child.

Referenced by OmniEvents::EventChannel_i::output().

bool OmniEvents::PersistNode::readnode istream &    is [inline]
 

Definition at line 66 of file PersistNode.cc.

References addattr(), addnode(), delnode(), and readtoken().

Referenced by PersistNode().

bool OmniEvents::PersistNode::readtoken istream &    is,
string &    tok
[inline]
 

Definition at line 83 of file PersistNode.cc.

Referenced by readnode().


Friends And Related Function Documentation

friend class omniEventsLog [friend]
 

Definition at line 74 of file PersistNode.h.


Member Data Documentation

map<string,string> OmniEvents::PersistNode::_attr
 

Definition at line 72 of file PersistNode.h.

Referenced by OmniEvents::EventChannel_i::activate(), addattr(), attrLong(), attrString(), hasAttr(), and output().

map<string,PersistNode*> OmniEvents::PersistNode::_child
 

Definition at line 71 of file PersistNode.h.

Referenced by addnode(), child(), delnode(), output(), OmniEvents::SupplierAdmin_i::reincarnate(), OmniEvents::ProxyPushConsumer_i::reincarnate(), OmniEvents::ProxyManager::reincarnate(), OmniEvents::ConsumerAdmin_i::reincarnate(), and ~PersistNode().


The documentation for this class was generated from the following files:
Generated on Fri Nov 19 17:42:34 2004 for OmniEvents by doxygen1.2.15