EvtGen 2.2.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.
Loading...
Searching...
No Matches
EvtParserXml Class Referencefinal

#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 m_fin
std::string m_line
int m_lineNo = 0
std::string m_tag
std::string m_tagTitle
bool m_inLineTag
std::vector< std::string > m_tagTree

Detailed Description

Definition at line 28 of file EvtParserXml.hh.

Member Function Documentation

◆ close()

bool EvtParserXml::close ( )

Definition at line 51 of file EvtParserXml.cpp.

◆ expandEnvVars()

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

Definition at line 226 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 151 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 282 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 32 of file EvtParserXml.cpp.

◆ processTagTree()

bool EvtParserXml::processTagTree ( )
private

Definition at line 210 of file EvtParserXml.cpp.

◆ readAttribute()

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

Definition at line 159 of file EvtParserXml.cpp.

◆ readAttributeBool()

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

Definition at line 176 of file EvtParserXml.cpp.

◆ readAttributeDouble()

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

Definition at line 198 of file EvtParserXml.cpp.

◆ readAttributeInt()

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

Definition at line 187 of file EvtParserXml.cpp.

◆ readNextTag()

bool EvtParserXml::readNextTag ( )

Definition at line 57 of file EvtParserXml.cpp.

Member Data Documentation

◆ m_fin

std::ifstream EvtParserXml::m_fin
private

Definition at line 47 of file EvtParserXml.hh.

◆ m_inLineTag

bool EvtParserXml::m_inLineTag
private

Definition at line 53 of file EvtParserXml.hh.

◆ m_line

std::string EvtParserXml::m_line
private

Definition at line 48 of file EvtParserXml.hh.

◆ m_lineNo

int EvtParserXml::m_lineNo = 0
private

Definition at line 49 of file EvtParserXml.hh.

◆ m_tag

std::string EvtParserXml::m_tag
private

Definition at line 51 of file EvtParserXml.hh.

◆ m_tagTitle

std::string EvtParserXml::m_tagTitle
private

Definition at line 52 of file EvtParserXml.hh.

◆ m_tagTree

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

Definition at line 54 of file EvtParserXml.hh.


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