Sub-class of evioDOMNode represents an evio container node. More...
#include <evioUtil.hxx>
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. |
Sub-class of evioDOMNode represents an evio container node.
Only accessible to users via pointer to evioDOMNode object.
evioDOMContainerNode::evioDOMContainerNode | ( | evioDOMNodeP | par, | |
uint16_t | tg, | |||
uint8_t | num, | |||
ContainerType | cType | |||
) | throw (evioException) [protected] |
Container node constructor used internally.
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] |
string evioDOMContainerNode::getBody | ( | int | depth, | |
const evioToStringConfig * | config = &defaultToStringConfig | |||
) | const [virtual] |
Returns empty body for container node.
depth | Current depth |
Implements evio::evioDOMNode.
string evioDOMContainerNode::getFooter | ( | int | depth, | |
const evioToStringConfig * | config = &defaultToStringConfig | |||
) | const [virtual] |
Returns XML string containing footer needed by toString.
depth | Current depth |
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.
depth | Current depth |
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.
Implements evio::evioDOMNode.
References childList.
Referenced by getHeader().
bool evio::evioDOMContainerNode::operator= | ( | const evioDOMContainerNode & | node | ) | [protected] |
friend class evioDOMNode [friend] |
Allows evioDOMNode to use private subclass methods.
STL List of pointers to children.
Referenced by evio::evioDOMTree::addBank(), evio::evioDOMNode::cut(), evio::evioDOMNode::getChildList(), getSize(), evio::evioDOMNode::move(), and ~evioDOMContainerNode().