CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

FWEDProductRepresentationChecker Class Reference

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

Inheritance diagram for FWEDProductRepresentationChecker:
FWRepresentationCheckerBase

List of all members.

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

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.

                                                                                            :
   FWRepresentationCheckerBase(iPurpose, iBitPackedViews,iRepresentsSubPart),
   m_typeidName(iTypeidName)
{
}
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().

{
   TClass* clss = TClass::GetClass(iTypeName.c_str());
   if(0==clss || clss->GetTypeInfo()==0) {
      return FWRepresentationInfo();
   }
   if(clss->GetTypeInfo()->name() == m_typeidName) {
      return FWRepresentationInfo(purpose(),0,bitPackedViews(), representsSubPart());
   }
   return FWRepresentationInfo();
}
const FWEDProductRepresentationChecker& FWEDProductRepresentationChecker::operator= ( const FWEDProductRepresentationChecker ) [private]

Member Data Documentation

Definition at line 51 of file FWEDProductRepresentationChecker.h.

Referenced by infoFor().