evio  5.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
evio::evioToStringConfig Class Reference

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

#include <evioUtil.hxx>

Public Member Functions

 evioToStringConfig ()
 No-arg constructor with no dictionary. More...
 
 evioToStringConfig (const evioDictionary *dictionary)
 Constructor accepts dictionary. More...
 
 evioToStringConfig (const evioDictionary &dictionary)
 Constructor accepts dictionary. More...
 
virtual ~evioToStringConfig ()
 Destructor. More...
 
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. More...
 

Public Attributes

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

Protected Member Functions

void init (void)
 Initializes config. More...
 

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.

evioToStringConfig::evioToStringConfig ( const evioDictionary dictionary)

Constructor accepts dictionary.

Parameters
dictionaryevioDictionary
evioToStringConfig::evioToStringConfig ( const evioDictionary dictionary)

Constructor accepts dictionary.

Parameters
dictionaryevioDictionary
evioToStringConfig::~evioToStringConfig ( )
virtual

Destructor.

Member Function Documentation

virtual const evioDictionary* evio::evioToStringConfig::getDictionary ( void  ) const
inlinevirtual
void evioToStringConfig::init ( void  )
protected

Initializes config.

virtual void evio::evioToStringConfig::setDictionary ( const evioDictionary dict)
inlinevirtual
virtual void evio::evioToStringConfig::setDictionary ( const evioDictionary dict)
inlinevirtual
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
pNodeNode under consideration
Returns
true to skip this node

References evio::evioDOMNode::num, and evio::evioDOMNode::tag.

Member Data Documentation

vector<string> evio::evioToStringConfig::bankNameOk

Vector of bank names to dump.

vector<uint16_t> evio::evioToStringConfig::bankOk

Vector of bank tags to dump.

int evio::evioToStringConfig::indentSize

Indent size per unit of depth.

Referenced by evio::evioCompositeDOMLeafNode::getBody().

int evio::evioToStringConfig::maxDepth

Max depth to dump.

vector<uint16_t> evio::evioToStringConfig::noBank

Vector of bank tags to skip.

vector<string> evio::evioToStringConfig::noBankName

Vector of bank names to skip.

bool evio::evioToStringConfig::noData

True do not dump leaf node data.

const evioDictionary* evio::evioToStringConfig::toStringDictionary
bool evio::evioToStringConfig::verbose

Turn on verbose mode.

bool evio::evioToStringConfig::xtod

True print unsigned values as decimal.


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