[Classes] [Prev] [Next] [Methods]

CFactoryMgr

Methods Index

Heritage
Description
Usage
Protected Data Members
Public Methods
Constructor and Destructor Methods
Factory Methods

CFactoryMgr


Heritage

Superclass: CNotifier

Subclass: None


Description

This class is a singleton for managing the framework's abstract factories.


Usage

((CMyFactory*)(G->GetFactoryMgr()->GetFactory(kMyid )))
->CreateMy();

Protected Data Members

class CFactoryStackMap* itsStackMap; Collection of stacks of factories
BOOLEAN itIsCached; Flag indicating if the factories are cached.
BOOLEAN itIsCurFirstElement; Flag used for caching factories.
int itsCurFactoryTypeId; Value used for caching factories.
void* itsCurFactory; Points to the currently cached factory.
class CFactoryStackElement* itsCurElement; Points to the currently cached factory stack.


Public Methods

Constructor and Destructor Methods

CFactoryMgr();
virtual ~CFactoryMgr();

Factory Methods

void* GetFactory(int theFactoryStackId);
void* GetNextFactory(int theFactoryStackId, 
void* thisFactory);
void  AddFactory(int theFactoryStackId, void* theNewFactory);
void  RemoveFactory(int theFactoryStackId, void* theOldFactory);


[Classes] [Prev] [Next] [Methods]

support@xvt.com


Visit our online help desk for tech support

Copyright © 2009, Providence Software Solutions Inc. All rights reserved.