Template-based object factory. More...
#include <SObjectFactory.h>
Public Member Functions | |
| TplSObjectFactory () | |
| Default constructor. | |
| void | OnFinalRelease () |
| Called when the final reference is released. | |
| LPCWSTR | BaseClassName () SCONST OVERRIDE |
| Gets the base class name of the object. | |
| IObject * | NewObject () SCONST OVERRIDE |
| Creates a new object of type T. | |
| IObjectFactory * | Clone () SCONST OVERRIDE |
| Clones the object factory. | |
| SObjectInfo | GetObjectInfo () SCONST OVERRIDE |
| Gets the object information for the factory. | |
Public Member Functions inherited from TObjRefImpl< IObjectFactory > | |
| TObjRefImpl () | |
| Constructor that initializes the reference count to 1. | |
| virtual | ~TObjRefImpl () |
| Virtual destructor. | |
| long | AddRef () override |
| Increments the reference count. | |
| long | Release () override |
| Decrements the reference count and deletes the object if the count reaches zero. | |
| void | OnFinalRelease () override |
| Deletes the object. | |
Additional Inherited Members | |
Protected Attributes inherited from TObjRefImpl< IObjectFactory > | |
| LONG | m_cRef |
| Reference count. | |
Template-based object factory.
| T | Type of the object to be created. |
Description: Implements the IObjectFactory interface for creating objects of type T.
Definition at line 80 of file SObjectFactory.h.
|
inline |
Default constructor.
Definition at line 85 of file SObjectFactory.h.
|
inline |
Gets the base class name of the object.
Definition at line 101 of file SObjectFactory.h.
|
inline |
Clones the object factory.
Definition at line 119 of file SObjectFactory.h.
|
inline |
Gets the object information for the factory.
Definition at line 128 of file SObjectFactory.h.
|
inline |
Creates a new object of type T.
Definition at line 110 of file SObjectFactory.h.
|
inline |
Called when the final reference is released.
Definition at line 92 of file SObjectFactory.h.