SampleICC Main srcforge
Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CIccMpeCreator Class Reference

#include <IccMpeFactory.h>

List of all members.

Public Member Functions

 ~CIccMpeCreator ()

Static Public Member Functions

CIccMultiProcessElementCreateElement (icElemTypeSignature elemTypeSig)
bool GetElementSigName (std::string &elemName, icElemTypeSignature elemTypeSig)
void PushFactory (IIccMpeFactory *pFactory)
IIccMpeFactoryPopFactory ()


Detailed Description

Class: CIccMpeCreator

Purpose: CIccMpeCreator uses a singleton pattern to provide dynamically upgradeable CIccProcessElement derived object creation based on element signature.


Constructor & Destructor Documentation

CIccMpeCreator::~CIccMpeCreator  ) 
 


Member Function Documentation

CIccMultiProcessElement* CIccMpeCreator::CreateElement icElemTypeSignature  elemTypeSig  )  [inline, static]
 

Function: CreateElement(elemTypeSig) Create a element of type elemTypeSig.

Parameter(s): elemTypeSig = signature of the ICC element type for the element to be created

Returns a new CIccProcessElement object of the given signature type. Each factory in the factoryStack is used until a factory supports the signature type.

bool CIccMpeCreator::GetElementSigName std::string &  elemName,
icElemTypeSignature  elemTypeSig
[inline, static]
 

Function: GetElementSigName(elemTypeSig) Get display name of elemTypeSig.

Parameter(s): elemName = string to put element name into elemTypeSig = signature of the ICC element type to get a name for

Returns true if element type is recognized by any factory, false if all factories do not create elemTypeSig elements. If element type is not recognized by any factories a suitable display name will be placed in elemName.

IIccMpeFactory* CIccMpeCreator::PopFactory  )  [inline, static]
 

Function: PopFactory() Remove the top IIccMpeFactory from the stack of element factories tracked by the system.

Parameter(s): None

Returns the top IIccMpeFactory from the stack of element factories tracked by the system. The returned element factory is no longer owned by the system and needs to be deleted to avoid memory leaks.

Note: The initial CIccBasicElemFactory cannot be popped off the stack.

void CIccMpeCreator::PushFactory IIccMpeFactory pFactory  )  [inline, static]
 

Function: PushFactory(pFactory) Add an IIccMpeFactory to the stack of element factories tracked by the system.

Parameter(s): pFactory = pointer to an IIccMpeFactory object to add to the system. The pFactory must be created with new, and will be owned CIccMpeCreator until popped off the stack using PopFactory(). Any factories not popped off will be taken care of properly on application shutdown.


The documentation for this class was generated from the following files:
Generated on Tue Jun 26 17:51:45 2007 for IccProfLib by  doxygen 1.3.9.1