CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
13 template<typename T>
15 public:
17  FWDetailViewBase(typeid(T)) {
18  }
19 
21  return edm::TypeWithDict(typeid(T)).name();
22  }
23 
25  return typeid(T).name();
26  }
27  virtual void build(const FWModelId&, const T*) = 0;
28  virtual void setTextInfo(const FWModelId&, const T*) = 0;
29 
30  virtual void build(const FWModelId& iID, const void* iData) {
31  setItem(iID.item());
32  build(iID, reinterpret_cast<const T*> (iData));
33  }
34 
35 };
36 
37 #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:20
std::string name() const
virtual void build(const FWModelId &iID, const void *iData)
Definition: FWDetailView.h:30
static std::string classRegisterTypeName()
Definition: FWDetailView.h:24
long double T
const FWEventItem * item() const
Definition: FWModelId.h:44