OmniEvents
|
#include <PersistNode.h>
Public Member Functions | |
PersistNode () | |
Create an empty node. | |
PersistNode (istream &is) | |
Create root node and read tree from stream. | |
~PersistNode () | |
Free node and all its children. | |
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 |
Definition at line 48 of file PersistNode.h.
|
inline |
OmniEvents::PersistNode::PersistNode | ( | istream & | is | ) |
Create root node and read tree from stream.
Definition at line 33 of file PersistNode.cc.
References readnode().
OmniEvents::PersistNode::~PersistNode | ( | ) |
Definition at line 144 of file PersistNode.cc.
References _attr.
Definition at line 138 of file PersistNode.cc.
References _attr.
Referenced by OmniEvents::omniEventsLog::bootstrap(), and readnode().
PersistNode * OmniEvents::PersistNode::addnode | ( | const string & | name | ) |
Definition at line 98 of file PersistNode.cc.
References _child, addnode(), and PersistNode().
Referenced by addnode(), OmniEvents::omniEventsLog::bootstrap(), and readnode().
Definition at line 163 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(), and OmniEvents::EventChannel_i::pullRetryPeriod_ms().
string OmniEvents::PersistNode::attrString | ( | const string & | key, |
const string & | fallback = "" |
||
) | const |
Definition at line 155 of file PersistNode.cc.
References _attr.
Referenced by OmniEvents::EventChannel_i::activate(), and OmniEvents::ConsumerAdmin_i::ConsumerAdmin_i().
PersistNode * OmniEvents::PersistNode::child | ( | const string & | key | ) | const |
Definition at line 171 of file PersistNode.cc.
References _child.
Referenced by OmniEvents::EventChannel_i::activate(), OmniEvents::omniEventsLog::incarnateFactory(), OmniEvents::omniEventsLog::parse(), OmniEvents::ConsumerAdmin_i::reincarnate(), and OmniEvents::SupplierAdmin_i::reincarnate().
Definition at line 119 of file PersistNode.cc.
References _child, and delnode().
Referenced by delnode(), and readnode().
Definition at line 151 of file PersistNode.cc.
References _attr.
Referenced by OmniEvents::ConsumerAdmin_i::ConsumerAdmin_i().
Definition at line 44 of file PersistNode.cc.
Referenced by OmniEvents::EventChannel_i::output().
Definition at line 67 of file PersistNode.cc.
References addattr(), addnode(), delnode(), and readtoken().
Referenced by PersistNode().
Definition at line 84 of file PersistNode.cc.
Referenced by readnode().
|
friend |
Definition at line 74 of file PersistNode.h.
Definition at line 72 of file PersistNode.h.
Referenced by OmniEvents::EventChannel_i::activate(), addattr(), 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(), OmniEvents::EventChannelFactory_i::EventChannelFactory_i(), output(), OmniEvents::ConsumerAdmin_i::reincarnate(), OmniEvents::ProxyManager::reincarnate(), and ~PersistNode().