#include <DefaultHepRepAttValue.h>
Inheritance diagram for cheprep::DefaultHepRepAttValue:

Definition at line 17 of file DefaultHepRepAttValue.h.
Public Member Functions | |
| DefaultHepRepAttValue (std::string name, std::string value, int showLabel) | |
| DefaultHepRepAttValue (std::string name, int64 value, int showLabel) | |
| DefaultHepRepAttValue (std::string name, int value, int showLabel) | |
| DefaultHepRepAttValue (std::string name, double value, int showLabel) | |
| DefaultHepRepAttValue (std::string name, bool value, int showLabel) | |
| DefaultHepRepAttValue (std::string name, std::vector< double > value, int showLabel) | |
| ~DefaultHepRepAttValue () | |
| HEPREP::HepRepAttValue * | copy () |
| std::string | getName () |
| std::string | getLowerCaseName () |
| int | getType () |
| std::string | getTypeName () |
| int | showLabel () |
| std::string | getString () |
| std::string | getLowerCaseString () |
| int64 | getLong () |
| int | getInteger () |
| double | getDouble () |
| bool | getBoolean () |
| std::vector< double > | getColor () |
| std::string | getAsString () |
| std::string | toShowLabel () |
Static Public Member Functions | |
| static std::string | getAsString (std::vector< double > c) |
| static std::string | getAsString (int i) |
| static std::string | getAsString (int64 i) |
| static std::string | getAsString (double d) |
| static std::string | getAsString (bool b) |
| static std::string | toShowLabel (int showLabel) |
Private Types | |
| LABELSTRINGS_LEN = 4 | |
| enum | { LABELSTRINGS_LEN = 4 } |
Private Member Functions | |
| void | init () |
Private Attributes | |
| std::string | name |
| int | type |
| std::string | stringValue |
| int64 | longValue |
| double | doubleValue |
| bool | booleanValue |
| std::vector< double > | colorValue |
| int | showLabelValue |
Static Private Attributes | |
| static std::string | labelStrings [LABELSTRINGS_LEN] |
anonymous enum [private] |
| cheprep::DefaultHepRepAttValue::DefaultHepRepAttValue | ( | std::string | name, | |
| std::string | value, | |||
| int | showLabel | |||
| ) |
Referenced by copy().
| cheprep::DefaultHepRepAttValue::DefaultHepRepAttValue | ( | std::string | name, | |
| int64 | value, | |||
| int | showLabel | |||
| ) |
| cheprep::DefaultHepRepAttValue::DefaultHepRepAttValue | ( | std::string | name, | |
| int | value, | |||
| int | showLabel | |||
| ) |
| cheprep::DefaultHepRepAttValue::DefaultHepRepAttValue | ( | std::string | name, | |
| double | value, | |||
| int | showLabel | |||
| ) |
| cheprep::DefaultHepRepAttValue::DefaultHepRepAttValue | ( | std::string | name, | |
| bool | value, | |||
| int | showLabel | |||
| ) |
| cheprep::DefaultHepRepAttValue::DefaultHepRepAttValue | ( | std::string | name, | |
| std::vector< double > | value, | |||
| int | showLabel | |||
| ) |
| cheprep::DefaultHepRepAttValue::~DefaultHepRepAttValue | ( | ) |
Definition at line 63 of file DefaultHepRepAttValue.cc.
| HepRepAttValue * cheprep::DefaultHepRepAttValue::copy | ( | ) | [virtual] |
Returns a deep copy of this attvalue.
Implements HEPREP::HepRepAttValue.
Definition at line 73 of file DefaultHepRepAttValue.cc.
References booleanValue, colorValue, DefaultHepRepAttValue(), doubleValue, longValue, name, showLabelValue, stringValue, and type.
Here is the call graph for this function:

| string cheprep::DefaultHepRepAttValue::getAsString | ( | bool | b | ) | [static] |
Definition at line 194 of file DefaultHepRepAttValue.cc.
| string cheprep::DefaultHepRepAttValue::getAsString | ( | double | d | ) | [static] |
Definition at line 188 of file DefaultHepRepAttValue.cc.
| string cheprep::DefaultHepRepAttValue::getAsString | ( | int64 | i | ) | [static] |
| string cheprep::DefaultHepRepAttValue::getAsString | ( | int | i | ) | [static] |
Definition at line 175 of file DefaultHepRepAttValue.cc.
| static std::string cheprep::DefaultHepRepAttValue::getAsString | ( | std::vector< double > | c | ) | [static] |
| string cheprep::DefaultHepRepAttValue::getAsString | ( | ) | [virtual] |
Returns value as string.
Implements HEPREP::HepRepAttValue.
Definition at line 153 of file DefaultHepRepAttValue.cc.
References getBoolean(), getColor(), getDouble(), getInteger(), getLong(), getString(), and type.
Referenced by cheprep::XMLWriter::setAttribute().
Here is the call graph for this function:

| bool cheprep::DefaultHepRepAttValue::getBoolean | ( | ) | [virtual] |
Returns value as boolean.
Implements HEPREP::HepRepAttValue.
Definition at line 142 of file DefaultHepRepAttValue.cc.
References booleanValue, getName(), and type.
Referenced by getAsString().
Here is the call graph for this function:

| vector< double > cheprep::DefaultHepRepAttValue::getColor | ( | ) | [virtual] |
Returns value as Color.
Implements HEPREP::HepRepAttValue.
Definition at line 147 of file DefaultHepRepAttValue.cc.
References colorValue, getName(), and type.
Referenced by getAsString().
Here is the call graph for this function:

| double cheprep::DefaultHepRepAttValue::getDouble | ( | ) | [virtual] |
Returns value as double.
Implements HEPREP::HepRepAttValue.
Definition at line 137 of file DefaultHepRepAttValue.cc.
References doubleValue, getName(), and type.
Referenced by getAsString().
Here is the call graph for this function:

| int cheprep::DefaultHepRepAttValue::getInteger | ( | ) | [virtual] |
Returns value as int.
Implements HEPREP::HepRepAttValue.
Definition at line 132 of file DefaultHepRepAttValue.cc.
References getName(), longValue, and type.
Referenced by getAsString().
Here is the call graph for this function:

| int64 cheprep::DefaultHepRepAttValue::getLong | ( | ) | [virtual] |
Returns value as long.
Implements HEPREP::HepRepAttValue.
Definition at line 127 of file DefaultHepRepAttValue.cc.
References getName(), longValue, and type.
Referenced by getAsString().
Here is the call graph for this function:

| string cheprep::DefaultHepRepAttValue::getLowerCaseName | ( | ) | [virtual] |
Returns lowercased name of the attvalue.
Implements HEPREP::HepRepAttValue.
Definition at line 89 of file DefaultHepRepAttValue.cc.
| string cheprep::DefaultHepRepAttValue::getLowerCaseString | ( | ) | [virtual] |
Returns value as lowercase string.
Implements HEPREP::HepRepAttValue.
Definition at line 120 of file DefaultHepRepAttValue.cc.
References getName(), s, stringValue, and type.
Here is the call graph for this function:

| string cheprep::DefaultHepRepAttValue::getName | ( | ) | [virtual] |
Returns name of the attvalue.
Implements HEPREP::HepRepAttValue.
Definition at line 85 of file DefaultHepRepAttValue.cc.
References name.
Referenced by getBoolean(), getColor(), getDouble(), getInteger(), getLong(), getLowerCaseString(), and getString().
| string cheprep::DefaultHepRepAttValue::getString | ( | ) | [virtual] |
Returns value as string.
Implements HEPREP::HepRepAttValue.
Definition at line 115 of file DefaultHepRepAttValue.cc.
References getName(), stringValue, and type.
Referenced by getAsString().
Here is the call graph for this function:

| int cheprep::DefaultHepRepAttValue::getType | ( | ) | [virtual] |
Returns type of the attvalue, defined in HepRepConstants with names TYPE_xxx.
Implements HEPREP::HepRepAttValue.
Definition at line 95 of file DefaultHepRepAttValue.cc.
References type.
| string cheprep::DefaultHepRepAttValue::getTypeName | ( | ) | [virtual] |
Returns the Java-like name for the type of this attvalue.
Implements HEPREP::HepRepAttValue.
Definition at line 99 of file DefaultHepRepAttValue.cc.
References type.
| void cheprep::DefaultHepRepAttValue::init | ( | ) | [private] |
| int cheprep::DefaultHepRepAttValue::showLabel | ( | ) | [virtual] |
Returns the flag bits for showing this attvalue as a label, defined in HepRepConstants with names SHOW_xxx.
Implements HEPREP::HepRepAttValue.
Definition at line 111 of file DefaultHepRepAttValue.cc.
References showLabelValue.
Referenced by toShowLabel().
| string cheprep::DefaultHepRepAttValue::toShowLabel | ( | int | showLabel | ) | [static] |
Definition at line 206 of file DefaultHepRepAttValue.cc.
References labelStrings, and LABELSTRINGS_LEN.
| string cheprep::DefaultHepRepAttValue::toShowLabel | ( | ) |
Definition at line 201 of file DefaultHepRepAttValue.cc.
References showLabel().
Referenced by cheprep::XMLWriter::setAttribute().
Here is the call graph for this function:

bool cheprep::DefaultHepRepAttValue::booleanValue [private] |
std::vector<double> cheprep::DefaultHepRepAttValue::colorValue [private] |
double cheprep::DefaultHepRepAttValue::doubleValue [private] |
std::string cheprep::DefaultHepRepAttValue::labelStrings [static, private] |
Definition at line 27 of file DefaultHepRepAttValue.h.
Referenced by copy(), getInteger(), and getLong().
std::string cheprep::DefaultHepRepAttValue::name [private] |
Definition at line 21 of file DefaultHepRepAttValue.h.
Referenced by copy(), getLowerCaseName(), and getName().
int cheprep::DefaultHepRepAttValue::showLabelValue [private] |
std::string cheprep::DefaultHepRepAttValue::stringValue [private] |
Definition at line 26 of file DefaultHepRepAttValue.h.
Referenced by copy(), getLowerCaseString(), and getString().
int cheprep::DefaultHepRepAttValue::type [private] |
Definition at line 22 of file DefaultHepRepAttValue.h.
Referenced by copy(), getAsString(), getBoolean(), getColor(), getDouble(), getInteger(), getLong(), getLowerCaseString(), getString(), getType(), and getTypeName().
1.4.7