CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 }
40 
41 // FWEDProductRepresentationChecker::FWEDProductRepresentationChecker(const FWEDProductRepresentationChecker& rhs)
42 // {
43 // // do actual copying here;
44 // }
45 
46 //FWEDProductRepresentationChecker::~FWEDProductRepresentationChecker()
47 //{
48 //}
49 
50 //
51 // assignment operators
52 //
53 // const FWEDProductRepresentationChecker& FWEDProductRepresentationChecker::operator=(const FWEDProductRepresentationChecker& rhs)
54 // {
55 // //An exception safe implementation is
56 // FWEDProductRepresentationChecker temp(rhs);
57 // swap(rhs);
58 //
59 // return *this;
60 // }
61 
62 //
63 // member functions
64 //
65 
66 //
67 // const member functions
68 //
71 {
72  TClass* clss = TClass::GetClass(iTypeName.c_str());
73  if(0==clss || clss->GetTypeInfo()==0) {
74  return FWRepresentationInfo();
75  }
76  if(clss->GetTypeInfo()->name() == m_typeidName) {
78  }
79  return FWRepresentationInfo();
80 }
81 
82 //
83 // static member functions
84 //
const std::string & purpose() const
virtual FWRepresentationInfo infoFor(const std::string &iTypeName) const
FWEDProductRepresentationChecker(const std::string &iTypeidName, const std::string &iPurpose, unsigned int iBitPackedViews, bool iRepresentsSubPart, bool iRequiresFF=false)