#include <Handler.hpp>
Inheritance diagram for corelinux::Handler


Public Methods | |
| Handler ( void ) | |
| Default constructor. | |
| Handler ( HandlerCref ) | |
| Copy constructor. | |
| virtual | ~Handler ( void ) |
| Virtual destructor. | |
| HandlerRef | operator= ( HandlerCref ) |
| Operator assignment. | |
| bool | operator== ( HandlerCref ) const |
| Equality operator. | |
| HandlerPtr | operator++ ( void ) |
| Returns successor or NULLPTR if end-of-chain. | |
| HandlerPtr | operator-- ( void ) |
| Returns predecessor or NULLPTR if end-of-chain. | |
| void | succeedHandler ( HandlerPtr ) throw ( Assertion ) |
| Have this tie itself as the successor to the argument handler pointer. More... | |
| void | precedeHandler ( HandlerPtr ) throw ( Assertion ) |
| Have this tie itself as the predecessor to the argument handler pointer. More... | |
| void | extractSelf ( void ) |
| Removes links from self. | |
| virtual void | handleRequest ( RequestPtr ) |
| Routine which either invokes the work method or passes along to successor. More... | |
Protected Methods | |
| virtual bool | handlesType ( RequestPtr ) = 0 |
| Implementation required. More... | |
| virtual void | handle ( RequestPtr ) = 0 |
| Implementation required. More... | |
| void | setSuccessor ( HandlerPtr ) |
| Sets the objects theSuccessor member. | |
| void | setPredecessor ( HandlerPtr ) |
| Sets the objects thePredecessor member. | |
| void | setSiblings ( HandlerPtr, HandlerPtr ) |
| Sets the object siblings as atomic operation. | |
Protected Attributes | |
| HandlerPtr | theSuccessor |
| Supports chaining of responsibility. | |
| HandlerPtr | thePredecessor |
| Supports chaining of responsibility where. | |
The builtin behavior is to allow forward and backward chaining of Handlers.
|
|
Implementation required. Once determined if type is handled, then handle it!
Reimplemented in HandlerHelpHandler, and RequestHelpHandler. |
|
|
Routine which either invokes the work method or passes along to successor. First calls handleType which determines if work is handled here or passed on.
|
|
|
Implementation required. Respond to type handler requests.
Reimplemented in HelpHandler. |
|
|
Have this tie itself as the predecessor to the argument handler pointer.
|
|
|
Have this tie itself as the successor to the argument handler pointer.
|