CMS 3D CMS Logo

FWDetailView.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 #ifndef Fireworks_Core_FWDetailView_h
3 #define Fireworks_Core_FWDetailView_h
4 
6 #include <string>
7 #include <typeinfo>
11 
12 template <typename T>
14 public:
16 
17  static std::string classTypeName() { return edm::TypeWithDict(typeid(T)).name(); }
18 
19  static std::string classRegisterTypeName() { return typeid(T).name(); }
20  virtual void build(const FWModelId&, const T*) = 0;
21  virtual void setTextInfo(const FWModelId&, const T*) = 0;
22 
23  void build(const FWModelId& iID, const void* iData) override {
24  setItem(iID.item());
25  build(iID, reinterpret_cast<const T*>(iData));
26  }
27 };
28 
29 #endif
virtual void setTextInfo(const FWModelId &, const T *)=0
virtual void build(const FWModelId &, const T *)=0
void setItem(const FWEventItem *x)
static std::string classTypeName()
Definition: FWDetailView.h:17
std::string name() const
static std::string classRegisterTypeName()
Definition: FWDetailView.h:19
void build(const FWModelId &iID, const void *iData) override
Definition: FWDetailView.h:23
long double T
const FWEventItem * item() const
Definition: FWModelId.h:39