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 // $Id: FWEDProductRepresentationChecker.cc,v 1.5 2010/06/02 22:55:42 chrjones Exp $
12 //
13 
14 // system include files
15 #include "TClass.h"
16 
17 // user include files
19 
21 //
22 // constants, enums and typedefs
23 //
24 
25 //
26 // static data member definitions
27 //
28 
29 //
30 // constructors and destructor
31 //
33  const std::string& iPurpose,
34  unsigned int iBitPackedViews,
35  bool iRepresentsSubPart) :
36  FWRepresentationCheckerBase(iPurpose, iBitPackedViews,iRepresentsSubPart),
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 //
70 FWEDProductRepresentationChecker::infoFor(const std::string& iTypeName) const
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)