|
OmniEvents
|
#include <PersistNode.h>
Public Member Functions | |
| 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 |
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 | ( | ) |
| void OmniEvents::PersistNode::addattr | ( | const string & | keyvalue | ) |
Definition at line 138 of file PersistNode.cc.
References _attr.
Referenced by OmniEvents::omniEventsLog::bootstrap(), and readnode().
| void OmniEvents::PersistNode::addattr | ( | const string & | key, |
| long | value | ||
| ) |
Definition at line 144 of file PersistNode.cc.
References _attr.
| 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().
| long OmniEvents::PersistNode::attrLong | ( | const string & | key, |
| long | fallback = 0 |
||
| ) | const |
Definition at line 163 of file PersistNode.cc.
References _attr.
Referenced by OmniEvents::ConsumerAdmin_i::ConsumerAdmin_i(), main(), OmniEvents::omniEventsLog::parse(), and OmniEvents::ProxyPushSupplier_i::reincarnate().
| 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(), OmniEvents::ConsumerAdmin_i::ConsumerAdmin_i(), main(), OmniEvents::ProxyPullSupplier_i::reincarnate(), OmniEvents::ProxyPullConsumer_i::reincarnate(), and OmniEvents::ProxyPushSupplier_i::reincarnate().
| 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(), main(), OmniEvents::omniEventsLog::parse(), OmniEvents::SupplierAdmin_i::reincarnate(), and OmniEvents::ConsumerAdmin_i::reincarnate().
| void OmniEvents::PersistNode::delnode | ( | const string & | name | ) |
| bool OmniEvents::PersistNode::hasAttr | ( | const string & | key | ) | const |
Definition at line 151 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 44 of file PersistNode.cc.
Referenced by OmniEvents::EventChannel_i::output().
|
inline |
Definition at line 67 of file PersistNode.cc.
References addattr(), addnode(), delnode(), and readtoken().
Referenced by PersistNode().
|
inline |
Definition at line 84 of file PersistNode.cc.
Referenced by readnode().
|
friend |
Definition at line 74 of file PersistNode.h.
| 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(), OmniEvents::EventChannelFactory_i::EventChannelFactory_i(), output(), OmniEvents::ProxyManager::reincarnate(), OmniEvents::SupplierAdmin_i::reincarnate(), OmniEvents::ConsumerAdmin_i::reincarnate(), OmniEvents::ProxyPushConsumer_i::reincarnate(), and ~PersistNode().