1 #if !defined(__HANDLER_HPP) 24 #if !defined(__COMMON_HPP) 28 #if !defined(__REQUEST_HPP) 29 #include <Request.hpp> 35 DECLARE_CLASS( Handler );
167 #endif // if !defined(__HANDLER_HPP) virtual void handleRequest(RequestPtr)
Routine which either invokes the work method or passes along to successor.
Definition: Handler.cpp:210
Defines an interface for handling requests, accessing successors, and optionally implements the succe...
Definition: Handler.hpp:43
Handler(void)
Default constructor.
Definition: Handler.cpp:33
HandlerRef operator=(HandlerCref)
Operator assignment.
Definition: Handler.cpp:63
virtual ~Handler(void)
Virtual destructor.
Definition: Handler.cpp:56
bool operator==(HandlerCref) const
Equality operator.
Definition: Handler.cpp:70
void setSuccessor(HandlerPtr)
Sets the objects theSuccessor member.
Definition: Handler.cpp:231
HandlerPtr operator++(void)
Returns successor or NULLPTR if end-of-chain.
Definition: Handler.cpp:77
Forward reference the various common classes.
Definition: AbstractAllocator.hpp:32
void succeedHandler(HandlerPtr)
Have this tie itself as the successor to the argument handler pointer.
Definition: Handler.cpp:93
void precedeHandler(HandlerPtr)
Have this tie itself as the predecessor to the argument handler pointer.
Definition: Handler.cpp:138
void setPredecessor(HandlerPtr)
Sets the objects thePredecessor member.
Definition: Handler.cpp:239
HandlerPtr operator--(void)
Returns predecessor or NULLPTR if end-of-chain.
Definition: Handler.cpp:85
HandlerPtr thePredecessor
Supports chaining of responsibility where.
Definition: Handler.hpp:161
virtual bool handlesType(RequestPtr)=0
Implementation required.
HandlerPtr theSuccessor
Supports chaining of responsibility.
Definition: Handler.hpp:157
Assertion is-a Exception created when an assertion fails.
Definition: Assertion.hpp:423
Synchronized is a mixin which allows class objects to enable monitor functionality.
Definition: Synchronized.hpp:41
virtual void handle(RequestPtr)=0
Implementation required.
void setSiblings(HandlerPtr, HandlerPtr)
Sets the object siblings as atomic operation.
Definition: Handler.cpp:247
void extractSelf(void)
Removes links from self.
Definition: Handler.cpp:183
A Request is used for type identification to a handler object.
Definition: Request.hpp:38