Represents a handler in a chain of handlers. All objects that participate in the HandlerChain class must implement this interface. More...
#include <HandlerChain_Class.h>
Public Types | |
using | shared_ptr_t = std::shared_ptr< IMessageHandler > |
Alias to make it easier when using a shared pointer. | |
Public Member Functions | |
virtual | ~IMessageHandler () |
Virtual destructor (required for interfaces in C++) | |
virtual int | ID ()=0 |
ID of the window. This is used to uniquely identify a window in the collection. | |
virtual bool | ProcessMessage (Message *message)=0 |
Called with a message on each window. | |
virtual std::string | ToString ()=0 |
Convert the handler to a string. | |
Represents a handler in a chain of handlers. All objects that participate in the HandlerChain class must implement this interface.
Definition at line 29 of file HandlerChain_Class.h.
using shared_ptr_t = std::shared_ptr<IMessageHandler> |
Alias to make it easier when using a shared pointer.
Definition at line 34 of file HandlerChain_Class.h.
|
inlinevirtual |
Virtual destructor (required for interfaces in C++)
Definition at line 39 of file HandlerChain_Class.h.
|
pure virtual |
ID of the window. This is used to uniquely identify a window in the collection.
Implemented in MessageWindow.
Referenced by HandlerChain::RemoveHandler(), and MessageWindow::ToString().
|
pure virtual |
Called with a message on each window.
message | Message object representing the message to process. |
Implemented in MessageWindow.
|
pure virtual |
Convert the handler to a string.
Implemented in MessageWindow.