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 void DeleteMeNow ()
CFactoryBase & Factory ()
IMPORT_C void MarkMeForDeletion ()
Protected Member Functions
AFactoryObject ( CFactoryBase &)
~AFactoryObject ()
Private Attributes
CFactoryBase & iFactory

Constructor & Destructor Documentation

AFactoryObject(CFactoryBase &)

IMPORT_C AFactoryObject ( CFactoryBase & aFactory ) [protected]

Parameters

CFactoryBase & aFactory The 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 void DeleteMeNow ( )

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 void MarkMeForDeletion ( )

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]