LCIO  "2.7.4"
 All Classes Namespaces Functions Variables Typedefs Friends Pages
LCGenericObject.h
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 EVENT_LCGENERICOBJECT_H
8 #define EVENT_LCGENERICOBJECT_H 1
9 
10 #include <string>
11 
12 #include "EVENT/LCObject.h"
13 
14 namespace EVENT {
15 
27 class LCGenericObject : public LCObject {
28 
29 public:
31  virtual ~LCGenericObject() { /* nop */; }
32 
33 
36 
39  virtual int getNInt() const = 0;
40 
43  virtual int getNFloat() const = 0;
44 
47  virtual int getNDouble() const = 0;
48 
51  virtual int getIntVal(int index) const = 0;
52 
55  virtual float getFloatVal(int index) const = 0;
56 
59  virtual double getDoubleVal(int index) const = 0;
60 
65  virtual bool isFixedSize() const = 0;
66 
72  virtual const std::string getTypeName() const = 0;
73 
78  virtual const std::string getDataDescription() const = 0;
79 
80 
83  virtual int id() const { return 0 ; }
84  }; // class
85 } // namespace EVENT
86 #endif /* ifndef EVENT_LCGENERICOBJECT_H */
The generic object that is held in an LCCollection.
Definition: LCObject.h:30
virtual int getNDouble() const =0
Number of double values stored in this object.
virtual bool isFixedSize() const =0
True if objects of the implementation class have a fixed size, i.e getNInt, getNFloat and getNDouble ...
virtual float getFloatVal(int index) const =0
Returns the float value for the given index.
LCGenericObject lcobject_type
Useful typedef for template programming with LCIO.
Definition: LCGenericObject.h:35
virtual int getNFloat() const =0
Number of float values stored in this object.
virtual const std::string getDataDescription() const =0
The description string.
virtual double getDoubleVal(int index) const =0
Returns the double value for the given index.
virtual ~LCGenericObject()
Destructor.
Definition: LCGenericObject.h:31
virtual int getNInt() const =0
Number of integer values stored in this object.
virtual int getIntVal(int index) const =0
Returns the integer value for the given index.
Simple interface to store generic user data.
Definition: LCGenericObject.h:27
virtual const std::string getTypeName() const =0
The type name of the user class (typically the class name) This type name is stored as a collection p...
virtual int id() const
Provide default implementation for id.
Definition: LCGenericObject.h:83