#include <ISupportsShuttingDown.h>
Inheritance diagram for mx::ISupportsShuttingDown:
Public Member Functions | |
virtual void | shutdown ()=0 |
Shuts down the implementing entity. |
Some objects that implement IErrorState need to finalize things when they get deleted, such as closing files for example. Such operations could go wrong, and the calling context would have no way of knowing about it unless there were a mechanism allowing for controlled shutdown prior to the actual object deletion. This is what this interface is for. Client contexts call call shutdown() and test errorState() afterwards to find out about potential errors that might have occured.
Error detection semantics:
false
after shutdown() has been called, that means that the entity has been shut down properly and that everything has gone fine up until thentrue
after shutdown() has been called, that means that something has gone wrong before the shutdown or while performing the shutdown itself
[khe]
Kai Hergenroether