24std::string DefaultHepRepAttValue::labelStrings[LABELSTRINGS_LEN];
33 , showLabelValue(aShowLabel)
44 , showLabelValue(aShowLabel)
55 , showLabelValue(aShowLabel)
66 , showLabelValue(aShowLabel)
76 , booleanValue(aValue)
77 , showLabelValue(aShowLabel)
89 , showLabelValue(aShowLabel)
97void DefaultHepRepAttValue::init() {
98 labelStrings[0] =
"NAME";
99 labelStrings[1] =
"DESC";
100 labelStrings[2] =
"VALUE";
101 labelStrings[3] =
"EXTRA";
120 default:
return new DefaultHepRepAttValue(name,
"Unknown type stored in HepRepAttDef", showLabelValue);
130 transform(s.begin(), s.end(), s.begin(), (
int(*)(
int)) tolower);
146 default:
return "Unknown type stored in HepRepAttDef";
151 return showLabelValue;
161 string s = stringValue;
162 transform(s.begin(), s.end(), s.begin(), (
int(*)(
int)) tolower);
173 return (
int64)longValue;
200 default:
return "Unknown typecode";
206 sprintf(
buffer,
"%4.2f, %4.2f, %4.2f, %4.2f",
210 (c.size() > 3) ? c[3] : 1.0);
234 return b ?
"true" :
"false";
251 for (
int i=0; i<16; i++) {
252 if (((
showLabel >> i) & 0x0001) == 0x0001) {
258 if (i < LABELSTRINGS_LEN) {
259 label.append(labelStrings[i]);
262 sprintf(hex,
"%0x", 1 << i);
std::string getLowerCaseString()
HEPREP::HepRepAttValue * copy()
DefaultHepRepAttValue(std::string name, std::string value, int showLabel)
std::vector< double > getColor()
std::string toShowLabel()
std::string getLowerCaseName()
std::string getAsString()
std::string getTypeName()
#define CHEPREP_INT64_FORMAT