CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 
virtual FWRepresentationInfo infoFor (const std::string &iTypeName) const
 
- Public Member Functions inherited from FWRepresentationCheckerBase
unsigned int bitPackedViews () const
 
 FWRepresentationCheckerBase (const std::string &iPurpose, unsigned int iBitPackedViews, bool iRepresentsSubPart)
 
const std::string & purpose () const
 
bool representsSubPart () const
 
virtual ~FWRepresentationCheckerBase ()
 

Private Member Functions

 FWEDProductRepresentationChecker (const FWEDProductRepresentationChecker &)
 
const
FWEDProductRepresentationChecker
operator= (const FWEDProductRepresentationChecker &)
 

Private Attributes

const std::string m_typeidName
 

Detailed Description

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

Usage: <usage>

Definition at line 30 of file FWEDProductRepresentationChecker.h.

Constructor & Destructor Documentation

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

Definition at line 32 of file FWEDProductRepresentationChecker.cc.

35  :
36  FWRepresentationCheckerBase(iPurpose, iBitPackedViews,iRepresentsSubPart),
37  m_typeidName(iTypeidName)
38 {
39 }
FWRepresentationCheckerBase(const std::string &iPurpose, unsigned int iBitPackedViews, bool iRepresentsSubPart)
FWEDProductRepresentationChecker::FWEDProductRepresentationChecker ( const FWEDProductRepresentationChecker )
private

Member Function Documentation

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

Implements FWRepresentationCheckerBase.

Definition at line 70 of file FWEDProductRepresentationChecker.cc.

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

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 }
const std::string & purpose() const
const FWEDProductRepresentationChecker& FWEDProductRepresentationChecker::operator= ( const FWEDProductRepresentationChecker )
private

Member Data Documentation

const std::string FWEDProductRepresentationChecker::m_typeidName
private

Definition at line 51 of file FWEDProductRepresentationChecker.h.

Referenced by infoFor().