CMS 3D CMS Logo

FWItemAccessorBase.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWItemAccessorBase_h
2 #define Fireworks_Core_FWItemAccessorBase_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWItemAccessorBase
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Sat Oct 18 08:14:21 EDT 2008
19 //
20 
21 // system include files
22 #include <typeinfo>
23 
24 // user include files
25 
26 // forward declarations
27 class TClass;
28 namespace edm {
29  class EDProduct;
30  class ObjectWithDict;
31 } // namespace edm
32 
34 public:
36  virtual ~FWItemAccessorBase();
37 
38  // ---------- const member functions ---------------------
39  virtual const void* modelData(int iIndex) const = 0;
40  virtual const void* data() const = 0;
41  virtual unsigned int size() const = 0;
42  virtual const TClass* modelType() const = 0;
43  virtual const TClass* type() const = 0;
44 
45  virtual bool isCollection() const = 0;
46 
48  //virtual std::string idForIndex(int iIndex) const;
49  // ---------- member functions ---------------------------
50  virtual void setData(const edm::ObjectWithDict&) = 0;
51  virtual void reset() = 0;
52 
53 private:
54  //FWItemAccessorBase(const FWItemAccessorBase&); // stop default
55 
56  //const FWItemAccessorBase& operator=(const FWItemAccessorBase&); // stop default
57 
58  // ---------- member data --------------------------------
59 };
60 
61 #endif
virtual const TClass * modelType() const =0
virtual const void * data() const =0
virtual void setData(const edm::ObjectWithDict &)=0
override if id of an object should be different than the index
virtual const void * modelData(int iIndex) const =0
virtual bool isCollection() const =0
virtual const TClass * type() const =0
virtual void reset()=0
HLT enums.
virtual unsigned int size() const =0