HepMC event record
|
Base class for all attributes.
Contains virtual functions to_string and from_string that each attribute must implement, as well as init function that attributes should overload to initialize parsed attribute
Definition at line 38 of file build/outputs/include/HepMC/Attribute.h.
#include <Attribute.h>
Public Member Functions | |
Attribute () | |
Default constructor. More... | |
virtual | ~Attribute () |
Virtual destructor. More... | |
virtual bool | from_string (const string &att)=0 |
Fill class content from string. More... | |
virtual bool | init (const GenEvent &) |
Optionally initialize the attribute after from_string. More... | |
virtual bool | init (const GenRunInfo &) |
Optionally initialize the attribute after from_string. More... | |
virtual bool | to_string (string &att) const =0 |
Fill string from class content. More... | |
bool | is_parsed () |
Check if this attribute is parsed. More... | |
const string & | unparsed_string () const |
Get unparsed string. More... | |
Attribute () | |
Default constructor. More... | |
virtual | ~Attribute () |
Virtual destructor. More... | |
virtual bool | from_string (const string &att)=0 |
Fill class content from string. More... | |
virtual bool | init (const GenEvent &) |
Optionally initialize the attribute after from_string. More... | |
virtual bool | init (const GenRunInfo &) |
Optionally initialize the attribute after from_string. More... | |
virtual bool | to_string (string &att) const =0 |
Fill string from class content. More... | |
bool | is_parsed () |
Check if this attribute is parsed. More... | |
const string & | unparsed_string () const |
Get unparsed string. More... | |
Protected Member Functions | |
Attribute (const string &st) | |
Protected constructor that allows to set string. More... | |
void | set_is_parsed (bool flag) |
Set is_parsed flag. More... | |
void | set_unparsed_string (const string &st) |
Set unparsed string. More... | |
Attribute (const string &st) | |
Protected constructor that allows to set string. More... | |
void | set_is_parsed (bool flag) |
Set is_parsed flag. More... | |
void | set_unparsed_string (const string &st) |
Set unparsed string. More... | |
Private Attributes | |
bool | m_is_parsed |
Is this attribute parsed? More... | |
string | m_string |
Raw (unparsed) string. More... | |
|
inline |
Default constructor.
Definition at line 44 of file build/outputs/include/HepMC/Attribute.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 47 of file build/outputs/include/HepMC/Attribute.h.
|
inlineprotected |
Protected constructor that allows to set string.
Used when parsing attributes from file. An StringAttribute class object is made, which uses this constructor to signify that it just holds string without parsing it.
Definition at line 58 of file build/outputs/include/HepMC/Attribute.h.
|
inline |
Default constructor.
Definition at line 44 of file include/HepMC/Attribute.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 47 of file include/HepMC/Attribute.h.
|
inlineprotected |
Protected constructor that allows to set string.
Used when parsing attributes from file. An StringAttribute class object is made, which uses this constructor to signify that it just holds string without parsing it.
Definition at line 58 of file include/HepMC/Attribute.h.
|
pure virtual |
Fill class content from string.
Implemented in StringAttribute, StringAttribute, FloatAttribute, FloatAttribute, DoubleAttribute, DoubleAttribute, LongAttribute, LongAttribute, IntAttribute, IntAttribute, HEPEUPAttribute, HEPEUPAttribute, GenCrossSection, GenHeavyIon, GenCrossSection, GenHeavyIon, GenPdfInfo, GenPdfInfo, HEPRUPAttribute, and HEPRUPAttribute.
|
pure virtual |
Fill class content from string.
Implemented in StringAttribute, StringAttribute, FloatAttribute, FloatAttribute, DoubleAttribute, DoubleAttribute, LongAttribute, LongAttribute, IntAttribute, IntAttribute, HEPEUPAttribute, HEPEUPAttribute, GenCrossSection, GenHeavyIon, GenCrossSection, GenHeavyIon, GenPdfInfo, GenPdfInfo, HEPRUPAttribute, and HEPRUPAttribute.
|
inlinevirtual |
Optionally initialize the attribute after from_string.
Is passed a reference to the GenEvent object to which the Attribute belongs.
Reimplemented in HEPEUPAttribute, and HEPEUPAttribute.
Definition at line 73 of file build/outputs/include/HepMC/Attribute.h.
|
inlinevirtual |
Optionally initialize the attribute after from_string.
Is passed a reference to the GenEvent object to which the Attribute belongs.
Reimplemented in HEPEUPAttribute, and HEPEUPAttribute.
Definition at line 73 of file include/HepMC/Attribute.h.
|
inlinevirtual |
Optionally initialize the attribute after from_string.
Is passed a reference to the GenRunInfo object to which the Attribute belongs.
Reimplemented in HEPEUPAttribute, and HEPEUPAttribute.
Definition at line 82 of file include/HepMC/Attribute.h.
|
inlinevirtual |
Optionally initialize the attribute after from_string.
Is passed a reference to the GenRunInfo object to which the Attribute belongs.
Reimplemented in HEPEUPAttribute, and HEPEUPAttribute.
Definition at line 82 of file build/outputs/include/HepMC/Attribute.h.
|
inline |
Check if this attribute is parsed.
Definition at line 94 of file build/outputs/include/HepMC/Attribute.h.
References Attribute::m_is_parsed.
|
inline |
Check if this attribute is parsed.
Definition at line 94 of file include/HepMC/Attribute.h.
References Attribute::m_is_parsed.
|
inlineprotected |
Set is_parsed flag.
Definition at line 101 of file include/HepMC/Attribute.h.
References Attribute::m_is_parsed.
|
inlineprotected |
Set is_parsed flag.
Definition at line 101 of file build/outputs/include/HepMC/Attribute.h.
References Attribute::m_is_parsed.
|
inlineprotected |
Set unparsed string.
Definition at line 104 of file build/outputs/include/HepMC/Attribute.h.
References Attribute::m_string.
|
inlineprotected |
Set unparsed string.
Definition at line 104 of file include/HepMC/Attribute.h.
References Attribute::m_string.
|
pure virtual |
Fill string from class content.
Implemented in StringAttribute, StringAttribute, FloatAttribute, FloatAttribute, DoubleAttribute, DoubleAttribute, LongAttribute, LongAttribute, IntAttribute, IntAttribute, HEPEUPAttribute, HEPEUPAttribute, GenCrossSection, GenHeavyIon, GenCrossSection, GenHeavyIon, GenPdfInfo, GenPdfInfo, HEPRUPAttribute, and HEPRUPAttribute.
|
pure virtual |
Fill string from class content.
Implemented in StringAttribute, StringAttribute, FloatAttribute, FloatAttribute, DoubleAttribute, DoubleAttribute, LongAttribute, LongAttribute, IntAttribute, IntAttribute, HEPEUPAttribute, HEPEUPAttribute, GenCrossSection, GenHeavyIon, GenCrossSection, GenHeavyIon, GenPdfInfo, GenPdfInfo, HEPRUPAttribute, and HEPRUPAttribute.
|
inline |
Get unparsed string.
Definition at line 97 of file include/HepMC/Attribute.h.
References Attribute::m_string.
|
inline |
Get unparsed string.
Definition at line 97 of file build/outputs/include/HepMC/Attribute.h.
References Attribute::m_string.
|
private |
Is this attribute parsed?
Definition at line 110 of file build/outputs/include/HepMC/Attribute.h.
|
private |
Raw (unparsed) string.
Definition at line 111 of file build/outputs/include/HepMC/Attribute.h.