Vault  4.1
Protected Member Functions | Friends
IVShutdownHandler Class Reference

IVShutdownHandler is the mix-in class (interface) for objects that are registered with the shutdown registry. More...

#include <vshutdownregistry.h>

Inheritance diagram for IVShutdownHandler:
VSingleton< T > VSingletonShutdownHandler< T >

List of all members.

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

Detailed Description

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.

See also:
VShutdownRegistry

Definition at line 24 of file vshutdownregistry.h.


Member Function Documentation

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 >.


The documentation for this class was generated from the following file:

Copyright ©1997-2014 Trygve Isaacson. All rights reserved. This documentation was generated with Doxygen.