EVENT::LCGenericObject Class Reference

Simple interface to store generic user data. More...

#include <pre-generated/EVENT/LCGenericObject.h>

Inheritance diagram for EVENT::LCGenericObject:
EVENT::LCObject lcrtrel::LCRTRelations IMPL::LCGenericObjectImpl UTIL::LCFixedObject< NINT, NFLOAT, NDOUBLE > IOIMPL::LCGenericObjectIOImpl CalibrationConstant

List of all members.

Public Types

typedef LCGenericObject lcobject_type
 Useful typedef for template programming with LCIO.

Public Member Functions

virtual ~LCGenericObject ()
 Destructor.
virtual int getNInt () const =0
 Number of integer values stored in this object.
virtual int getNFloat () const =0
 Number of float values stored in this object.
virtual int getNDouble () const =0
 Number of double values stored in this object.
virtual int getIntVal (int index) const =0
 Returns the integer value for the given index.
virtual float getFloatVal (int index) const =0
 Returns the float value for the given index.
virtual double getDoubleVal (int index) const =0
 Returns the double value for the given index.
virtual bool isFixedSize () const =0
 True if objects of the implementation class have a fixed size, i.e getNInt, getNFloat and getNDouble will return values that are constant during the lifetime of the object.
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 parameter "TypeName" with every collection of LCGenericObject subclasses.
virtual const std::string getDataDescription () const =0
 The description string.
virtual int id () const
 Provide default implementation for id.

Detailed Description

Simple interface to store generic user data.

To store your own classes they have to implement this interface.

2005-02-11, gaede: Changed the return value of getTypeName() and getDataDescription() from const std::string& to const std::string to make the implementation easier

Author:
gaede
Version:
Id
LCGenericObject.aid,v 1.7 2006-08-04 16:52:44 gaede Exp

Member Function Documentation

virtual const std::string EVENT::LCGenericObject::getDataDescription (  )  const [pure virtual]

The description string.

A comma separated list of pairs of type identifier, one of 'i','f','d' followed by ':' and an attribute name, e.g. "i:cellId,f:offset,f:gain".

Implemented in IMPL::LCGenericObjectImpl, and CalibrationConstant.

virtual const std::string EVENT::LCGenericObject::getTypeName (  )  const [pure virtual]

The type name of the user class (typically the class name) This type name is stored as a collection parameter "TypeName" with every collection of LCGenericObject subclasses.


Implemented in IMPL::LCGenericObjectImpl, and CalibrationConstant.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Friends

Generated on 6 Mar 2020 for LCIO by  doxygen 1.6.1