#include <BasicClassGroupFactory.h>
Inheritance diagram for BasicClassGroupFactory:
Public Member Functions | |
virtual | ~BasicClassGroupFactory () |
void | registerClass (BasicClassAccessorBase *accessor) |
Register a new class with the group. | |
virtual BasicClassGroup * | create () |
The constructors of each of the classes in the group will be called in the order they where registered with the factory. | |
virtual void | destroy (BasicClassGroup *group) |
The destructors of each of the classes in the group will be called in the order they were registered with the factory. | |
Private Attributes | |
BasicArray< BasicClassFactoryBase< void > * > | classFactories |
Pros:
Cons:
See also BasicDynamicClassFactory.
|
|
|
The constructors of each of the classes in the group will be called in the order they where registered with the factory.
Implements BasicClassFactoryBase< BasicClassGroup >.
|
|
The destructors of each of the classes in the group will be called in the order they were registered with the factory.
Implements BasicClassFactoryBase< BasicClassGroup >.
|
|
Register a new class with the group. BasicClassAccessor::createClassFactory() is called to get an instance of the class factory. BasicClassGroupFactory will deallocate this factory when it is destructed.
|
|
|