HepRepAttValue.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 // AID-GENERATED
3 // =========================================================================
4 // This class was generated by AID - Abstract Interface Definition
5 // DO NOT MODIFY, but use the org.freehep.aid.Aid utility to regenerate it.
6 // =========================================================================
7 #ifndef HEPREP_HEPREPATTVALUE_H
8 #define HEPREP_HEPREPATTVALUE_H 1
9 
10 // Copyright 2000-2005, FreeHEP.
11 
12 #include <string>
13 #include <vector>
14 
15 #include "HEPREP/Types.h"
16 
17 namespace HEPREP {
18 
19 /**
20  * HepRepAttValue interface.
21  *
22  * @author Mark Donszelmann
23  */
25 
26 public:
27  /// Destructor.
28  virtual ~HepRepAttValue() { /* nop */; }
29 
30  /**
31  * Returns name of the attvalue.
32  *
33  * @return Capitalized Name.
34  */
35  virtual std::string getName() = 0;
36 
37  /**
38  * Returns lowercased name of the attvalue.
39  *
40  * @return Lowercased Name.
41  */
42  virtual std::string getLowerCaseName() = 0;
43 
44  /**
45  * Returns type of the attvalue, defined in HepRepConstants with names TYPE_xxx.
46  *
47  * @return type.
48  */
49  virtual int getType() = 0;
50 
51  /**
52  * Returns the Java-like name for the type of this attvalue.
53  *
54  * @return type name.
55  */
56  virtual std::string getTypeName() = 0;
57 
58  /**
59  * Returns the flag bits for showing this attvalue as a label, defined in HepRepConstants with names SHOW_xxx.
60  *
61  * @return flag bits if should be shown as label.
62  */
63  virtual int showLabel() = 0;
64 
65  /**
66  * Returns value as string.
67  *
68  * @return value as string (if type is string).
69  */
70  virtual std::string getString() = 0;
71 
72  /**
73  * Returns value as lowercase string.
74  *
75  * @return value as string (if type is string).
76  */
77  virtual std::string getLowerCaseString() = 0;
78 
79  /**
80  * Returns value as string.
81  *
82  * @return value (of any type) in string format.
83  */
84  virtual std::string getAsString() = 0;
85 
86  /**
87  * Returns value as Color.
88  *
89  * @return value as Color.
90  */
91  virtual std::vector<double> getColor() = 0;
92 
93  /**
94  * Returns value as long.
95  *
96  * @return value as long.
97  */
98  virtual int64 getLong() = 0;
99 
100  /**
101  * Returns value as int.
102  *
103  * @return value as integer.
104  */
105  virtual int getInteger() = 0;
106 
107  /**
108  * Returns value as double.
109  *
110  * @return value as double.
111  */
112  virtual double getDouble() = 0;
113 
114  /**
115  * Returns value as boolean.
116  *
117  * @return value as boolean.
118  */
119  virtual bool getBoolean() = 0;
120 
121  /**
122  * Returns a deep copy of this attvalue.
123  *
124  * @return copy of this attvalue.
125  */
126  virtual HepRepAttValue * copy() = 0;
127 }; // class
128 } // namespace HEPREP
129 #endif /* ifndef HEPREP_HEPREPATTVALUE_H */
virtual std::string getAsString()=0
virtual int getType()=0
virtual int getInteger()=0
virtual ~HepRepAttValue()
Destructor.
virtual std::string getString()=0
virtual std::string getTypeName()=0
long long int64
Definition: Types.h:27
virtual std::string getName()=0
virtual std::string getLowerCaseString()=0
virtual int64 getLong()=0
virtual int showLabel()=0
virtual std::vector< double > getColor()=0
virtual std::string getLowerCaseName()=0
virtual HepRepAttValue * copy()=0
virtual double getDouble()=0
virtual bool getBoolean()=0
enum BeamMode string