ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
tree
geant4-10.6-release
config
environments
examples
source
analysis
digits_hits
error_propagation
event
externals
g3tog4
geometry
global
graphics_reps
intercoms
interfaces
materials
parameterisations
particles
persistency
physics_lists
processes
readout
run
track
tracking
visualization
externals
FukuiRenderer
gMocren
HepRep
include
cheprep
AbstractXMLWriter.h
BHepRepWriter.h
config.h
DefaultHepRep.h
DefaultHepRepAction.h
DefaultHepRepAttDef.h
DefaultHepRepAttribute.h
DefaultHepRepAttValue.h
DefaultHepRepDefinition.h
DefaultHepRepFactory.h
DefaultHepRepInstance.h
DefaultHepRepInstanceTree.h
DefaultHepRepPoint.h
DefaultHepRepTreeID.h
DefaultHepRepType.h
DefaultHepRepTypeTree.h
DeflateOutputStreamBuffer.h
GZIPOutputStream.h
GZIPOutputStreamBuffer.h
IndentPrintWriter.h
XMLHepRepFactory.h
XMLHepRepWriter.h
XMLWriter.h
ZipEntry.h
ZipOutputStream.h
ZipOutputStreamBuffer.h
HEPREP
G4HepRep.hh
G4HepRepFile.hh
G4HepRepFileSceneHandler.hh
G4HepRepFileViewer.hh
G4HepRepFileXMLWriter.hh
G4HepRepMessenger.hh
G4HepRepSceneHandler.hh
G4HepRepViewer.hh
src
management
modeling
OpenGL
OpenInventor
RayTracer
Tree
VRML
XXX
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
DefaultHepRepAttValue.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file DefaultHepRepAttValue.h
1
// Copyright FreeHEP, 2005.
2
#ifndef CHEPREP_DEFAULTHEPREPATTVALUE_H
3
#define CHEPREP_DEFAULTHEPREPATTVALUE_H 1
4
5
#include "
cheprep/config.h
"
6
7
#include <string>
8
9
#include "
HEPREP/HepRepAttValue.h
"
10
14
namespace
cheprep {
15
16
class
DefaultHepRepAttValue
:
public
virtual
HEPREP::HepRepAttValue
{
17
18
private
:
19
enum
{
LABELSTRINGS_LEN
= 4 };
20
std::string
name
;
21
int
type
;
22
23
// values implemented as separate items, so that they do not take up unnecessary space for an Object
24
// only ONE of these is filled
25
std::string
stringValue
;
26
int64
longValue
;
27
double
doubleValue
;
28
bool
booleanValue
;
29
std::vector<double>
colorValue
;
30
31
int
showLabelValue
;
32
static
std::string
labelStrings
[
LABELSTRINGS_LEN
];
33
34
void
init
();
35
36
public
:
37
DefaultHepRepAttValue
(std::string
name
, std::string
value
,
int
showLabel
);
38
DefaultHepRepAttValue
(std::string
name
,
int64
value
,
int
showLabel
);
39
DefaultHepRepAttValue
(std::string
name
,
int
value
,
int
showLabel
);
40
DefaultHepRepAttValue
(std::string
name
,
double
value
,
int
showLabel
);
41
DefaultHepRepAttValue
(std::string
name
,
bool
value
,
int
showLabel
);
42
DefaultHepRepAttValue
(std::string
name
, std::vector<double>
value
,
int
showLabel
);
43
~DefaultHepRepAttValue
();
44
45
HEPREP::HepRepAttValue
*
copy
();
46
47
std::string
getName
();
48
std::string
getLowerCaseName
();
49
int
getType
();
50
std::string
getTypeName
();
51
int
showLabel
();
52
std::string
getString
();
53
std::string
getLowerCaseString
();
54
int64
getLong
();
55
int
getInteger
();
56
double
getDouble
();
57
bool
getBoolean
();
58
std::vector<double>
getColor
();
59
60
std::string
getAsString
();
61
static
std::string
getAsString
(std::vector<double>
c
);
62
static
std::string
getAsString
(
int
i);
63
static
std::string
getAsString
(
int64
i);
64
static
std::string
getAsString
(
double
d
);
65
static
std::string
getAsString
(
bool
b
);
66
67
std::string
toShowLabel
();
68
static
std::string
toShowLabel
(
int
showLabel
);
69
};
70
71
}
// cheprep
72
73
74
#endif
75
geant4
tree
geant4-10.6-release
source
visualization
HepRep
include
cheprep
DefaultHepRepAttValue.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:54
using
1.8.2 with
ECCE GitHub integration