evtgen is hosted by Hepforge, IPPP Durham
EvtGen  2.0.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.

#include <EvtGenBase/EvtParserXml.hh>

Public Member Functions

bool open (std::string filename)
 
bool close ()
 
bool readNextTag ()
 
std::string getTagTitle ()
 
std::string getParentTagTitle ()
 
int getLineNumber ()
 
bool isTagInline ()
 
std::string readAttribute (std::string attribute, std::string defaultValue="")
 
bool readAttributeBool (std::string attribute, bool defaultValue=false)
 
int readAttributeInt (std::string attribute, int defaultValue=-1)
 
double readAttributeDouble (std::string attribute, double defaultValue=-1.)
 

Private Member Functions

bool processTagTree ()
 
bool expandEnvVars (std::string &str)
 
bool isAlphaNum (char c)
 

Private Attributes

std::ifstream _fin
 
std::string _line
 
int _lineNo = 0
 
std::string _tag
 
std::string _tagTitle
 
bool _inLineTag
 
std::vector< std::string > _tagTree
 

Detailed Description

Definition at line 28 of file EvtParserXml.hh.

Member Function Documentation

◆ close()

bool EvtParserXml::close ( )

Definition at line 52 of file EvtParserXml.cpp.

◆ expandEnvVars()

bool EvtParserXml::expandEnvVars ( std::string &  str)
private

Definition at line 227 of file EvtParserXml.cpp.

◆ getLineNumber()

int EvtParserXml::getLineNumber ( )
inline

Definition at line 37 of file EvtParserXml.hh.

◆ getParentTagTitle()

std::string EvtParserXml::getParentTagTitle ( )

Definition at line 152 of file EvtParserXml.cpp.

◆ getTagTitle()

std::string EvtParserXml::getTagTitle ( )
inline

Definition at line 35 of file EvtParserXml.hh.

◆ isAlphaNum()

bool EvtParserXml::isAlphaNum ( char  c)
private

Definition at line 283 of file EvtParserXml.cpp.

◆ isTagInline()

bool EvtParserXml::isTagInline ( )
inline

Definition at line 38 of file EvtParserXml.hh.

◆ open()

bool EvtParserXml::open ( std::string  filename)

Definition at line 33 of file EvtParserXml.cpp.

◆ processTagTree()

bool EvtParserXml::processTagTree ( )
private

Definition at line 211 of file EvtParserXml.cpp.

◆ readAttribute()

std::string EvtParserXml::readAttribute ( std::string  attribute,
std::string  defaultValue = "" 
)

Definition at line 160 of file EvtParserXml.cpp.

◆ readAttributeBool()

bool EvtParserXml::readAttributeBool ( std::string  attribute,
bool  defaultValue = false 
)

Definition at line 177 of file EvtParserXml.cpp.

◆ readAttributeDouble()

double EvtParserXml::readAttributeDouble ( std::string  attribute,
double  defaultValue = -1. 
)

Definition at line 199 of file EvtParserXml.cpp.

◆ readAttributeInt()

int EvtParserXml::readAttributeInt ( std::string  attribute,
int  defaultValue = -1 
)

Definition at line 188 of file EvtParserXml.cpp.

◆ readNextTag()

bool EvtParserXml::readNextTag ( )

Definition at line 58 of file EvtParserXml.cpp.

Member Data Documentation

◆ _fin

std::ifstream EvtParserXml::_fin
private

Definition at line 47 of file EvtParserXml.hh.

◆ _inLineTag

bool EvtParserXml::_inLineTag
private

Definition at line 53 of file EvtParserXml.hh.

◆ _line

std::string EvtParserXml::_line
private

Definition at line 48 of file EvtParserXml.hh.

◆ _lineNo

int EvtParserXml::_lineNo = 0
private

Definition at line 49 of file EvtParserXml.hh.

◆ _tag

std::string EvtParserXml::_tag
private

Definition at line 51 of file EvtParserXml.hh.

◆ _tagTitle

std::string EvtParserXml::_tagTitle
private

Definition at line 52 of file EvtParserXml.hh.

◆ _tagTree

std::vector<std::string> EvtParserXml::_tagTree
private

Definition at line 54 of file EvtParserXml.hh.


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