CMS 3D CMS Logo

FWEDProductRepresentationChecker.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Core
4 // Class : FWEDProductRepresentationChecker
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author: Chris Jones
10 // Created: Tue Nov 11 15:20:10 EST 2008
11 //
12 
13 // system include files
14 #include "TClass.h"
15 
16 // user include files
18 
20 //
21 // constants, enums and typedefs
22 //
23 
24 //
25 // static data member definitions
26 //
27 
28 //
29 // constructors and destructor
30 //
32  const std::string& iPurpose,
33  unsigned int iBitPackedViews,
34  bool iRepresentsSubPart,
35  bool iRequiresFF)
36  : FWRepresentationCheckerBase(iPurpose, iBitPackedViews, iRepresentsSubPart, iRequiresFF),
37  m_typeidName(iTypeidName) {}
38 
39 // FWEDProductRepresentationChecker::FWEDProductRepresentationChecker(const FWEDProductRepresentationChecker& rhs)
40 // {
41 // // do actual copying here;
42 // }
43 
44 //FWEDProductRepresentationChecker::~FWEDProductRepresentationChecker()
45 //{
46 //}
47 
48 //
49 // assignment operators
50 //
51 // const FWEDProductRepresentationChecker& FWEDProductRepresentationChecker::operator=(const FWEDProductRepresentationChecker& rhs)
52 // {
53 // //An exception safe implementation is
54 // FWEDProductRepresentationChecker temp(rhs);
55 // swap(rhs);
56 //
57 // return *this;
58 // }
59 
60 //
61 // member functions
62 //
63 
64 //
65 // const member functions
66 //
68  TClass* clss = TClass::GetClass(iTypeName.c_str());
69  if (nullptr == clss || clss->GetTypeInfo() == nullptr) {
70  return FWRepresentationInfo();
71  }
72  if (clss->GetTypeInfo()->name() == m_typeidName) {
74  }
75  return FWRepresentationInfo();
76 }
77 
78 //
79 // static member functions
80 //
FWEDProductRepresentationChecker::FWEDProductRepresentationChecker
FWEDProductRepresentationChecker(const std::string &iTypeidName, const std::string &iPurpose, unsigned int iBitPackedViews, bool iRepresentsSubPart, bool iRequiresFF=false)
Definition: FWEDProductRepresentationChecker.cc:31
FWRepresentationInfo.h
FWEDProductRepresentationChecker::infoFor
FWRepresentationInfo infoFor(const std::string &iTypeName) const override
Definition: FWEDProductRepresentationChecker.cc:67
FWRepresentationCheckerBase::purpose
const std::string & purpose() const
Definition: FWRepresentationCheckerBase.cc:64
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FWRepresentationCheckerBase::bitPackedViews
unsigned int bitPackedViews() const
Definition: FWRepresentationCheckerBase.cc:66
FWEDProductRepresentationChecker::m_typeidName
const std::string m_typeidName
Definition: FWEDProductRepresentationChecker.h:50
FWRepresentationCheckerBase::requiresFF
bool requiresFF() const
Definition: FWRepresentationCheckerBase.h:44
FWRepresentationInfo
Definition: FWRepresentationInfo.h:28
FWRepresentationCheckerBase::representsSubPart
bool representsSubPart() const
Definition: FWRepresentationCheckerBase.cc:68
FWRepresentationCheckerBase
Definition: FWRepresentationCheckerBase.h:28
FWEDProductRepresentationChecker.h