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
FWModelId
Definition: FWModelId.h:28
FWDetailView::setTextInfo
virtual void setTextInfo(const FWModelId &, const T *)=0
FWModelId.h
FWDetailView::FWDetailView
FWDetailView()
Definition: FWDetailView.h:15
TypeWithDict.h
FWModelId::item
const FWEventItem * item() const
Definition: FWModelId.h:39
FWDetailViewFactory.h
FWDetailView
Definition: FWDetailView.h:13
FWDetailView::build
void build(const FWModelId &iID, const void *iData) override
Definition: FWDetailView.h:23
FWDetailViewBase.h
edm::TypeWithDict
Definition: TypeWithDict.h:38
FWDetailViewBase::setItem
void setItem(const FWEventItem *x)
Definition: FWDetailViewBase.h:49
FWDetailViewBase
Definition: FWDetailViewBase.h:35
FWDetailView::classRegisterTypeName
static std::string classRegisterTypeName()
Definition: FWDetailView.h:19
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
T
long double T
Definition: Basic3DVectorLD.h:48
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
FWDetailView::build
virtual void build(const FWModelId &, const T *)=0
edm::TypeWithDict::name
std::string name() const
Definition: TypeWithDict.cc:456
FWDetailView::classTypeName
static std::string classTypeName()
Definition: FWDetailView.h:17