EpIC 1.1.0
Monte Carlo generator for exclusive processes
|
Definition of event attribute types. More...
#include <EventAttributeType.h>
Public Types | |
enum | Type { UNDEFINED = 0 , ID = 1 , WEIGHT = 2 } |
Public Member Functions | |
EventAttributeType () | |
EventAttributeType (Type type) | |
EventAttributeType (const EventAttributeType &other) | |
operator Type () const | |
virtual std::string | toString () const |
EventAttributeType::Type | getType () const |
void | setType (Type type) |
Static Public Member Functions | |
static EventAttributeType::Type | fromString (const std::string &str) |
Definition of event attribute types.
This class defines a set of enumeration values that are used to distinguish between event attributes types. In addition, a declared object of this class is always associated to one type (see EventAttributeType::m_type), so member functions can act on it.
EPIC::EventAttributeType::EventAttributeType | ( | ) |
Default constructor.
EPIC::EventAttributeType::EventAttributeType | ( | Type | type | ) |
Assignment constructor.
EPIC::EventAttributeType::EventAttributeType | ( | const EventAttributeType & | other | ) |
Copy constructor.
|
static |
Get type from string.
EventAttributeType::Type EPIC::EventAttributeType::getType | ( | ) | const |
Get type being assigned to a declared object of this class.
EPIC::EventAttributeType::operator Type | ( | ) | const |
Automatic cast to enum.
void EPIC::EventAttributeType::setType | ( | Type | type | ) |
Assign type to a declared object of this class.