Sub-class of evioDOMNode represents an evio leaf node. More...
#include <evioUtil.hxx>
Public Member Functions | |
virtual string | getHeader (int depth, const evioToStringConfig *config=&defaultToStringConfig) const |
Returns XML string containing header needed by toString. | |
virtual string | getBody (int depth, const evioToStringConfig *config=&defaultToStringConfig) const |
Returns XML string containing body needed by toString. | |
virtual string | getFooter (int depth, const evioToStringConfig *config=&defaultToStringConfig) const |
Returns XML string containing footer needed by toString. | |
virtual int | getSize (void) const |
Returns numnber of data elements. | |
Public Attributes | |
vector< T > | data |
Vector<T> of node data. | |
Protected Member Functions | |
evioDOMLeafNode (evioDOMNodeP par, uint16_t tag, uint8_t num) throw (evioException) | |
Leaf node constructor used internally. | |
evioDOMLeafNode (evioDOMNodeP par, uint16_t tag, uint8_t num, const vector< T > &v) throw (evioException) | |
Leaf node constructor used internally. | |
evioDOMLeafNode (evioDOMNodeP par, uint16_t tag, uint8_t num, const T *p, int ndata) throw (evioException) | |
Leaf node constructor used internally. | |
virtual | ~evioDOMLeafNode (void) |
evioDOMLeafNode (const evioDOMLeafNode< T > &lNode) throw (evioException) | |
bool | operator= (const evioDOMLeafNode< T > &lNode) |
Friends | |
class | evioDOMNode |
Allows evioDOMNode to use private subclass methods. |
Sub-class of evioDOMNode represents an evio leaf node.
Only accessible to users via pointer to evioDOMNode object.
evio::evioDOMLeafNode< T >::evioDOMLeafNode | ( | evioDOMNodeP | par, | |
uint16_t | tag, | |||
uint8_t | num | |||
) | throw (evioException) [inline, protected] |
Leaf node constructor used internally.
par | Parent node | |
tag | Node tag | |
num | Node num |
evio::evioDOMLeafNode< T >::evioDOMLeafNode | ( | evioDOMNodeP | par, | |
uint16_t | tag, | |||
uint8_t | num, | |||
const vector< T > & | v | |||
) | throw (evioException) [inline, protected] |
Leaf node constructor used internally.
par | Parent node | |
tag | Node tag | |
num | Node num | |
v | vector<T> of data |
evio::evioDOMLeafNode< T >::evioDOMLeafNode | ( | evioDOMNodeP | par, | |
uint16_t | tag, | |||
uint8_t | num, | |||
const T * | p, | |||
int | ndata | |||
) | throw (evioException) [inline, protected] |
Leaf node constructor used internally.
par | Parent node | |
tag | Node tag | |
num | Node num | |
p | Pointer to array containg data of type T | |
ndata | Length of array |
evio::evioDOMLeafNode< T >::~evioDOMLeafNode | ( | void | ) | [inline, protected, virtual] |
evio::evioDOMLeafNode< T >::evioDOMLeafNode | ( | const evioDOMLeafNode< T > & | lNode | ) | throw (evioException) [protected] |
string evio::evioDOMLeafNode< T >::getBody | ( | int | depth, | |
const evioToStringConfig * | config = &defaultToStringConfig | |||
) | const [inline, virtual] |
Returns XML string containing body needed by toString.
depth | Current depth |
Implements evio::evioDOMNode.
Reimplemented in evio::evioCompositeDOMLeafNode.
string evio::evioDOMLeafNode< T >::getFooter | ( | int | depth, | |
const evioToStringConfig * | config = &defaultToStringConfig | |||
) | const [inline, virtual] |
Returns XML string containing footer needed by toString.
depth | Current depth |
Implements evio::evioDOMNode.
string evio::evioDOMLeafNode< T >::getHeader | ( | int | depth, | |
const evioToStringConfig * | config = &defaultToStringConfig | |||
) | const [inline, virtual] |
Returns XML string containing header needed by toString.
depth | Current depth |
Implements evio::evioDOMNode.
int evio::evioDOMLeafNode< T >::getSize | ( | void | ) | const [inline, virtual] |
Returns numnber of data elements.
Implements evio::evioDOMNode.
Reimplemented in evio::evioCompositeDOMLeafNode.
bool evio::evioDOMLeafNode< T >::operator= | ( | const evioDOMLeafNode< T > & | lNode | ) | [protected] |
Reimplemented in evio::evioCompositeDOMLeafNode.
friend class evioDOMNode [friend] |
Allows evioDOMNode to use private subclass methods.
Reimplemented in evio::evioCompositeDOMLeafNode.
vector<T> evio::evioDOMLeafNode< T >::data |
Vector<T> of node data.
Referenced by evio::evioDOMNode::append().