evio::evioToStringConfig Class Reference

Configuration options for toString() method. More...

#include <evioUtil.hxx>

List of all members.

Public Member Functions

 evioToStringConfig ()
 No-arg constructor with no dictionary.
 evioToStringConfig (const evioDictionary *dictionary)
 Constructor accepts dictionary.
 evioToStringConfig (const evioDictionary &dictionary)
 Constructor accepts dictionary.
virtual ~evioToStringConfig ()
 Destructor.
virtual void setDictionary (const evioDictionary *dict)
virtual void setDictionary (const evioDictionary &dict)
virtual const evioDictionarygetDictionary (void) const
bool skipNode (const evioDOMNodeP pNode) const
 Checks if bank tag/num is listed in include/exclude vectors by tag/num OR by name.

Public Attributes

bool xtod
 True print unsigned values as decimal.
bool noData
 True do not dump leaf node data.
int maxDepth
 Max depth to dump.
int indentSize
 Indent size per unit of depth.
bool verbose
 Turn on verbose mode.
vector< uint16_t > bankOk
 Vector of bank tags to dump.
vector< uint16_t > noBank
 Vector of bank tags to skip.
vector< string > bankNameOk
 Vector of bank names to dump.
vector< string > noBankName
 Vector of bank names to skip.
const evioDictionarytoStringDictionary
 Dictionary to use.

Protected Member Functions

void init (void)
 Initializes config.

Detailed Description

Configuration options for toString() method.

max_depth: depth to convert to, 0 means no limit, default 0. no_data: true to not dump data of leaf nodes, default false. indentSize indent size for increasing bank level depth, default 3 toStringDictionary dictionary to use, overrides default dictionary


Constructor & Destructor Documentation

evioToStringConfig::evioToStringConfig (  ) 

No-arg constructor with no dictionary.

References init().

evioToStringConfig::evioToStringConfig ( const evioDictionary dictionary  ) 

Constructor accepts dictionary.

Parameters:
dictionary evioDictionary

References init(), and toStringDictionary.

evioToStringConfig::evioToStringConfig ( const evioDictionary dictionary  ) 

Constructor accepts dictionary.

Parameters:
dictionary evioDictionary

References init(), and toStringDictionary.

evioToStringConfig::~evioToStringConfig (  )  [virtual]

Destructor.


Member Function Documentation

virtual const evioDictionary* evio::evioToStringConfig::getDictionary ( void   )  const [inline, virtual]

References toStringDictionary.

void evioToStringConfig::init ( void   )  [protected]

Initializes config.

References indentSize, maxDepth, noData, toStringDictionary, verbose, and xtod.

Referenced by evioToStringConfig().

virtual void evio::evioToStringConfig::setDictionary ( const evioDictionary dict  )  [inline, virtual]

References toStringDictionary.

virtual void evio::evioToStringConfig::setDictionary ( const evioDictionary dict  )  [inline, virtual]
bool evioToStringConfig::skipNode ( const evioDOMNodeP  pNode  )  const

Checks if bank tag/num is listed in include/exclude vectors by tag/num OR by name.

Parameters:
pNode Node under consideration
Returns:
true to skip this node

References bankNameOk, bankOk, evio::evioDictionary::getName(), evio::evioDictionary::getNameMap, noBank, noBankName, evio::evioDOMNode::num, evio::evioDOMNode::tag, and toStringDictionary.


Member Data Documentation

Vector of bank names to dump.

Referenced by skipNode().

Vector of bank tags to dump.

Referenced by skipNode().

Indent size per unit of depth.

Referenced by evio::evioCompositeDOMLeafNode::getBody(), and init().

Max depth to dump.

Referenced by init().

Vector of bank tags to skip.

Referenced by skipNode().

Vector of bank names to skip.

Referenced by skipNode().

True do not dump leaf node data.

Referenced by init().

Turn on verbose mode.

Referenced by init().

True print unsigned values as decimal.

Referenced by init().


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

Generated on 4 Feb 2014 for evio by  doxygen 1.6.1