Factories::AFactoryObject Class Reference

class Factories::AFactoryObject

Factory Object Base class providing basic managed objects functionality in conjunction with CFactoryBase.

Public Member Functions
IMPORT_C voidDeleteMeNow()
CFactoryBase &Factory()
IMPORT_C voidMarkMeForDeletion()
Protected Member Functions
AFactoryObject(CFactoryBase &)
~AFactoryObject()
Private Attributes
CFactoryBase &iFactory

Constructor & Destructor Documentation

AFactoryObject(CFactoryBase &)

IMPORT_CAFactoryObject(CFactoryBase &aFactory)[protected]

Constructor for AFactoryObject CFactoryBase

Parameters

CFactoryBase & aFactoryThe factory which owns this factory object

~AFactoryObject()

IMPORT_C~AFactoryObject()[protected, virtual]

Destructor. Notifies the parent container that this managed object is being destroyed

Member Functions Documentation

DeleteMeNow()

IMPORT_C voidDeleteMeNow()

Delete the factory object. Should only be called by CFactoryBase.

Factory()

CFactoryBase &Factory()const [inline]

Get the factory which owns this factory object

MarkMeForDeletion()

IMPORT_C voidMarkMeForDeletion()

Mark this factory object for deletion. Once marked for deletion, it will not be given to clients as a result of a find or create factory object request.

Instructs the parent container to delete this managed object

Member Data Documentation

CFactoryBase & iFactory

CFactoryBase &iFactory[private]