File indexing completed on 2024-04-06 12:11:37
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #include "TClass.h"
0015
0016
0017 #include "Fireworks/Core/interface/FWEDProductRepresentationChecker.h"
0018
0019 #include "Fireworks/Core/interface/FWRepresentationInfo.h"
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031 FWEDProductRepresentationChecker::FWEDProductRepresentationChecker(const std::string& iTypeidName,
0032 const std::string& iPurpose,
0033 unsigned int iBitPackedViews,
0034 bool iRepresentsSubPart,
0035 bool iRequiresFF)
0036 : FWRepresentationCheckerBase(iPurpose, iBitPackedViews, iRepresentsSubPart, iRequiresFF),
0037 m_typeidName(iTypeidName) {}
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065
0066
0067 FWRepresentationInfo FWEDProductRepresentationChecker::infoFor(const std::string& iTypeName) const {
0068 TClass* clss = TClass::GetClass(iTypeName.c_str());
0069 if (nullptr == clss || clss->GetTypeInfo() == nullptr) {
0070 return FWRepresentationInfo();
0071 }
0072 if (clss->GetTypeInfo()->name() == m_typeidName) {
0073 return FWRepresentationInfo(purpose(), 0, bitPackedViews(), representsSubPart(), requiresFF());
0074 }
0075 return FWRepresentationInfo();
0076 }
0077
0078
0079
0080