#include <IErrorState.h>
Inheritance diagram for mx::IErrorState:
Public Member Functions | |
virtual bool | errorState ()=0 |
Tells whether or not the respective object is in error state. | |
virtual void | setErrorState ()=0 |
Switches the object into error state - needed for forwarding error conditions, see above. |
Within a complex plugged-together decoding configuration (for example), it is possible that error conditions arise inside individual component objects. Those components can then switch to a dedicated error state which in most cases wil mean that they become inert. Their being in error state can be queries using the errorState() method.
For sequentially plugged-together object configurations such as decoder setups there is the convention that error states always get propagated through the sequence, so for the client context it will be sufficient to query the final element object to determine whether or not an error has been detected. It can then query the individual element objects to find out in detail what has gone wrong.
[khe]
Kai Hergenroether