#include <NumberingPolicy.h>
Public Member Functions | |
virtual | ~NumberingPolicy (void) |
Virtual destractor. | |
virtual std::string | onCreate (void *obj)=0 |
Create the name when creating objects. | |
virtual void | onDelete (void *obj)=0 |
Delete the name when deleting objects. | |
Classes | |
struct | ObjectNotFound |
The structures for exception handling when object was not found. More... |
This is the abstract interface class to manage the naming policy when creating objects. Concrete classes must implement the following pure virtual functions.
virtual NumberingPolicy::~NumberingPolicy | ( | void | ) | [inline, virtual] |
Virtual destractor.
virtual std::string NumberingPolicy::onCreate | ( | void * | obj | ) | [pure virtual] |
Create the name when creating objects.
Pure virtual function to create the name when creating objects.
obj | The target object for the creation |
Implemented in DefaultNumberingPolicy.
virtual void NumberingPolicy::onDelete | ( | void * | obj | ) | [pure virtual] |
Delete the name when deleting objects.
Pure virtual function to delete the name when deleting object.
obj | The target object of the delete |
Implemented in DefaultNumberingPolicy.