CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
FWEDProductRepresentationChecker Class Reference

#include <Fireworks/Core/interface/FWEDProductRepresentationChecker.h>

Inheritance diagram for FWEDProductRepresentationChecker:
FWRepresentationCheckerBase

Public Member Functions

 FWEDProductRepresentationChecker (const std::string &iTypeidName, const std::string &iPurpose, unsigned int iBitPackedViews, bool iRepresentsSubPart, bool iRequiresFF=false)
 
FWRepresentationInfo infoFor (const std::string &iTypeName) const override
 
- Public Member Functions inherited from FWRepresentationCheckerBase
unsigned int bitPackedViews () const
 
 FWRepresentationCheckerBase (const std::string &iPurpose, unsigned int iBitPackedViews, bool iRepresentsSubPart, bool iRequiresFF=false)
 
const std::string & purpose () const
 
bool representsSubPart () const
 
bool requiresFF () const
 
virtual ~FWRepresentationCheckerBase ()
 

Private Member Functions

 FWEDProductRepresentationChecker (const FWEDProductRepresentationChecker &)=delete
 
const FWEDProductRepresentationCheckeroperator= (const FWEDProductRepresentationChecker &)=delete
 

Private Attributes

const std::string m_typeidName
 

Detailed Description

Description: <one line="" class="" summary>="">

Usage: <usage>

Definition at line 29 of file FWEDProductRepresentationChecker.h.

Constructor & Destructor Documentation

◆ FWEDProductRepresentationChecker() [1/2]

FWEDProductRepresentationChecker::FWEDProductRepresentationChecker ( const std::string &  iTypeidName,
const std::string &  iPurpose,
unsigned int  iBitPackedViews,
bool  iRepresentsSubPart,
bool  iRequiresFF = false 
)

Definition at line 31 of file FWEDProductRepresentationChecker.cc.

36  : FWRepresentationCheckerBase(iPurpose, iBitPackedViews, iRepresentsSubPart, iRequiresFF),
37  m_typeidName(iTypeidName) {}

◆ FWEDProductRepresentationChecker() [2/2]

FWEDProductRepresentationChecker::FWEDProductRepresentationChecker ( const FWEDProductRepresentationChecker )
privatedelete

Member Function Documentation

◆ infoFor()

FWRepresentationInfo FWEDProductRepresentationChecker::infoFor ( const std::string &  iTypeName) const
overridevirtual

Implements FWRepresentationCheckerBase.

Definition at line 67 of file FWEDProductRepresentationChecker.cc.

67  {
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 }

References FWRepresentationCheckerBase::bitPackedViews(), m_typeidName, FWRepresentationCheckerBase::purpose(), FWRepresentationCheckerBase::representsSubPart(), and FWRepresentationCheckerBase::requiresFF().

◆ operator=()

const FWEDProductRepresentationChecker& FWEDProductRepresentationChecker::operator= ( const FWEDProductRepresentationChecker )
privatedelete

Member Data Documentation

◆ m_typeidName

const std::string FWEDProductRepresentationChecker::m_typeidName
private

Definition at line 50 of file FWEDProductRepresentationChecker.h.

Referenced by infoFor().

FWRepresentationCheckerBase::purpose
const std::string & purpose() const
Definition: FWRepresentationCheckerBase.cc:64
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::FWRepresentationCheckerBase
FWRepresentationCheckerBase(const std::string &iPurpose, unsigned int iBitPackedViews, bool iRepresentsSubPart, bool iRequiresFF=false)
Definition: FWRepresentationCheckerBase.cc:29