evio::evioDOMContainerNode Class Reference

Sub-class of evioDOMNode represents an evio container node. More...

#include <evioUtil.hxx>

Inheritance diagram for evio::evioDOMContainerNode:
evio::evioDOMNode

List of all members.

Public Member Functions

virtual string getHeader (int depth, const evioToStringConfig *config=&defaultToStringConfig) const
 Returns XML string containing header needed for toString() and related methods.
virtual string getBody (int depth, const evioToStringConfig *config=&defaultToStringConfig) const
 Returns empty body for container node.
virtual string getFooter (int depth, const evioToStringConfig *config=&defaultToStringConfig) const
 Returns XML string containing footer needed by toString.
virtual int getSize (void) const
 Returns number of children of this container node.

Public Attributes

evioDOMNodeList childList
 STL List of pointers to children.

Protected Member Functions

 evioDOMContainerNode (evioDOMNodeP parent, uint16_t tag, uint8_t num, ContainerType cType) throw (evioException)
 Container node constructor used internally.
virtual ~evioDOMContainerNode (void)
 Destructor recursively deletes children.
 evioDOMContainerNode (const evioDOMContainerNode &cNode) throw (evioException)
bool operator= (const evioDOMContainerNode &node)

Friends

class evioDOMNode
 Allows evioDOMNode to use private subclass methods.

Detailed Description

Sub-class of evioDOMNode represents an evio container node.

Only accessible to users via pointer to evioDOMNode object.


Constructor & Destructor Documentation

evioDOMContainerNode::evioDOMContainerNode ( evioDOMNodeP  par,
uint16_t  tg,
uint8_t  num,
ContainerType  cType 
) throw (evioException) [protected]

Container node constructor used internally.

Parameters:
par Parent node
tg Node tag
num Node num
cType Container node content type
evioDOMContainerNode::~evioDOMContainerNode ( void   )  [protected, virtual]

Destructor recursively deletes children.

References childList.

evio::evioDOMContainerNode::evioDOMContainerNode ( const evioDOMContainerNode cNode  )  throw (evioException) [protected]

Member Function Documentation

string evioDOMContainerNode::getBody ( int  depth,
const evioToStringConfig config = &defaultToStringConfig 
) const [virtual]

Returns empty body for container node.

Parameters:
depth Current depth
Returns:
Empty string

Implements evio::evioDOMNode.

string evioDOMContainerNode::getFooter ( int  depth,
const evioToStringConfig config = &defaultToStringConfig 
) const [virtual]

Returns XML string containing footer needed by toString.

Parameters:
depth Current depth
Returns:
XML string

Implements evio::evioDOMNode.

References evio::BANK, evio::evioDOMNode::getContentType(), evio::evioDOMNode::getIndent(), evio::evioDictionary::getNameMap, evio::evioDOMNode::parent, and evio::evioToStringConfig::toStringDictionary.

string evioDOMContainerNode::getHeader ( int  depth,
const evioToStringConfig config = &defaultToStringConfig 
) const [virtual]

Returns XML string containing header needed for toString() and related methods.

Parameters:
depth Current depth
Returns:
XML string

Implements evio::evioDOMNode.

References evio::BANK, evio::evioDOMNode::getContentType(), evio::evioDOMNode::getIndent(), evio::evioDictionary::getNameMap, getSize(), evio::evioDOMNode::parent, and evio::evioToStringConfig::toStringDictionary.

int evioDOMContainerNode::getSize ( void   )  const [virtual]

Returns number of children of this container node.

Returns:
Number of children of this container node

Implements evio::evioDOMNode.

References childList.

Referenced by getHeader().

bool evio::evioDOMContainerNode::operator= ( const evioDOMContainerNode node  )  [protected]

Friends And Related Function Documentation

friend class evioDOMNode [friend]

Allows evioDOMNode to use private subclass methods.


Member Data Documentation


The documentation for this class was generated from the following files:

Generated on 4 Feb 2014 for evio by  doxygen 1.6.1