#include <DefaultItemFactory.h>
Inheritance diagram for Arxx::DefaultItemFactory:
The default ItemFactory is only a wrapper object for new and delete and serves as the most basic and simple ItemFactory.
There is no need to ever create a DefaultItemFactory, since a global stack object is included in the object file. If no ItemFactory is forced to be used this global factory will be chosen automatically for you.
Public Member Functions | |
DefaultItemFactory (void) | |
The default constructor fot a DefaultItemFactory. | |
virtual | ~DefaultItemFactory (void) |
The default destructor fot a DefaultItemFactory. | |
virtual Arxx::Item * | pNewItem (Arxx::u4byte u4UniqueID=Arxx::g_u4InvalidID) |
Creates a new Arxx::Item. | |
virtual Arxx::Item * | pNewItem (Arxx::Archive &Archive, Arxx::u4byte u4UniqueID=Arxx::g_u4InvalidID) |
Creates a new Arxx::Item. | |
virtual void | vDeleteItem (Arxx::Item *pItem) |
Destroys a Arxx::Item. |
Arxx::DefaultItemFactory::DefaultItemFactory | ( | void | ) |
The default constructor fot a DefaultItemFactory.
The default constructor does no valuable work and is only implemented for debugging and logging support.
Arxx::DefaultItemFactory::~DefaultItemFactory | ( | void | ) | [virtual] |
The default destructor fot a DefaultItemFactory.
The default destructor does no valuable work and is only implemented for debugging and logging support.
Arxx::Item * Arxx::DefaultItemFactory::pNewItem | ( | Arxx::Archive & | Archive, | |
Arxx::u4byte | u4UniqueID = Arxx::g_u4InvalidID | |||
) | [virtual] |
Creates a new Arxx::Item.
Archive | A reference to an Archive which the item is to be registered to. | |
u4UniqueID | The unique ID that the item should be created with. |
The call that is performed here is the Arxx::Item constructor with an Archive and the unique ID.
Implements Arxx::ItemFactory.
Arxx::Item * Arxx::DefaultItemFactory::pNewItem | ( | Arxx::u4byte | u4UniqueID = Arxx::g_u4InvalidID |
) | [virtual] |
Creates a new Arxx::Item.
u4UniqueID | The unique ID that the item should be created with. |
The call that is performed here is the Arxx::Item default constructor.
Implements Arxx::ItemFactory.
void Arxx::DefaultItemFactory::vDeleteItem | ( | Arxx::Item * | pItem | ) | [virtual] |
Destroys a Arxx::Item.
This function is a wrapper for delete and nothing else. It deletes the item pItem.
Implements Arxx::ItemFactory.