![]() |
Vault
4.1
|
IVShutdownHandler is the mix-in class (interface) for objects that are registered with the shutdown registry. More...
#include <vshutdownregistry.h>
Protected Member Functions | |
IVShutdownHandler (bool deleteHandlerAfterShutdown=true) | |
virtual void | _shutdown ()=0 |
Called by the shutdown registry to tell the object to clean up as part of shutdown. | |
Friends | |
class | VShutdownRegistry |
IVShutdownHandler is the mix-in class (interface) for objects that are registered with the shutdown registry.
The concrete subclass must simply implement the _shutdown() function and do its cleanup there.
Definition at line 24 of file vshutdownregistry.h.
virtual void IVShutdownHandler::_shutdown | ( | ) | [protected, pure virtual] |
Called by the shutdown registry to tell the object to clean up as part of shutdown.
The typical usage is to free any class static (global) data owned by some class. See the VSingletonShutdownHandler template class for an example.
Implemented in VSingletonShutdownHandler< T >, and VSingleton< T >.