Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

OmniEvents::PersistNode Class Reference

#include <PersistNode.h>

List of all members.

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)
PersistNodeaddnode (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
PersistNodechild (const string &key) const

Public Attributes

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


class omniEventsLog

Detailed Description

Definition at line 48 of file PersistNode.h.

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

References readnode().

OmniEvents::PersistNode::~PersistNode  ) 

Free node and all its children.

Definition at line 37 of file

References _child.

Member Function Documentation

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

Definition at line 143 of file

References _attr.

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

Definition at line 137 of file

References _attr.

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

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

Definition at line 97 of file

References _child, addnode(), and PersistNode().

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

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

Definition at line 162 of file

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 = ""

Definition at line 154 of file

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

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

References _child.

Referenced by readnode().

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

Definition at line 150 of file

References _attr.

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

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

Definition at line 43 of file

References _attr, and _child.

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

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

Definition at line 66 of file

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

Referenced by PersistNode().

bool OmniEvents::PersistNode::readtoken istream &  is,
string &  tok

Definition at line 83 of file

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(), OmniEvents::EventChannelFactory_i::EventChannelFactory_i(), 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 Aug 26 20:56:16 2005 for OmniEvents by  doxygen 1.4.3-20050530