Hoyt's FORK of DemoIccMAX 2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
|
Class: CIccXformCreator. More...
#include <IccXformFactory.h>
Public Member Functions | |
~CIccXformCreator () | |
Static Public Member Functions | |
static CIccXform * | CreateXform (icXformType xformType, CIccTag *pTag=NULL, CIccCreateXformHintManager *pHintManager=NULL) |
Function: CreateXform(xformTypeSig) Create a xform of type xformTypeSig. | |
static IIccXformFactory * | PopFactory () |
Function: PopFactory() Remove the top IIccXformFactory from the stack of xform factories tracked by the system. | |
static void | PushFactory (IIccXformFactory *pFactory) |
Function: PushFactory(pFactory) Add an IIccXformFactory to the stack of xform factories tracked by the system. | |
Private Member Functions | |
CIccXformCreator () | |
Only GetInstance() can create the signleton. | |
CIccXform * | DoCreateXform (icXformType xformType, CIccTag *pTag=NULL, CIccCreateXformHintManager *pHintManager=NULL) |
IIccXformFactory * | DoPopFactory (bool bAll=false) |
void | DoPushFactory (IIccXformFactory *pFactory) |
Static Private Member Functions | |
static CIccXformCreator * | GetInstance () |
Function: GetInstance() Private static function to access singleton CiccXformCreator Object. | |
Private Attributes | |
CIccXformFactoryList | factoryStack |
Static Private Attributes | |
static CIccXformCreatorPtr | theXformCreator |
Class: CIccXformCreator.
Purpose: CIccXformCreator uses a singleton pattern to provide dynamically upgradeable CIccXform derived object creation based on xform type.
Definition at line 167 of file IccXformFactory.h.
CIccXformCreator::~CIccXformCreator | ( | ) |
Definition at line 120 of file IccXformFactory.cpp.
|
inlineprivate |
Only GetInstance() can create the signleton.
Definition at line 220 of file IccXformFactory.h.
|
inlinestatic |
Function: CreateXform(xformTypeSig) Create a xform of type xformTypeSig.
Parameter(s): xformType = signature of the ICC xform type for the xform to be created pTag = tag information for created xform pHintManager = contains additional information used to create xform
Returns a new CIccXform object of the given xform type. Each factory in the factoryStack is used until a factory supports the signature type.
Definition at line 185 of file IccXformFactory.h.
References DoCreateXform(), and GetInstance().
|
private |
Definition at line 141 of file IccXformFactory.cpp.
Referenced by CreateXform().
|
private |
Definition at line 159 of file IccXformFactory.cpp.
Referenced by PopFactory().
|
private |
Definition at line 154 of file IccXformFactory.cpp.
|
staticprivate |
Function: GetInstance() Private static function to access singleton CiccXformCreator Object.
Parameter(s): None
Returns the singleton CIccXformCreator object. It will allocate a new one and push a single CIccSpecXform Factory object onto the factory stack if the singleton has not been intialized.
Definition at line 130 of file IccXformFactory.cpp.
Referenced by CreateXform(), PopFactory(), and PushFactory().
|
inlinestatic |
Function: PopFactory() Remove the top IIccXformFactory from the stack of xform factories tracked by the system.
Parameter(s): None
Returns the top IIccXformFactory from the stack of xform factories tracked by the system. The returned xform factory is no longer owned by the system and needs to be deleted to avoid memory leaks.
Note: The initial CIccSpecXformFactory cannot be popped off the stack.
Definition at line 215 of file IccXformFactory.h.
References DoPopFactory(), and GetInstance().
|
inlinestatic |
Function: PushFactory(pFactory) Add an IIccXformFactory to the stack of xform factories tracked by the system.
Parameter(s): pFactory = pointer to an IIccXformFactory object to add to the system. The pFactory must be created with new, and will be owned CIccXformCreator until popped off the stack using PopFactory(). Any factories not popped off will be taken care of properly on application shutdown.
Definition at line 199 of file IccXformFactory.h.
References GetInstance().
|
private |
Definition at line 241 of file IccXformFactory.h.
|
staticprivate |
Definition at line 239 of file IccXformFactory.h.