Message Listener basic interface.
More...
#include <WeArtMessageListener.h>
|
| WeArtMessageListener (std::set< std::string > ids) |
| Basic message listener constructor.
|
|
bool | accept (std::string id) |
| Tells if a given ID can be processed by the listener.
|
|
virtual void | OnMessageReceived (WeArtMessage *message)=0 |
| Callback called when an accepted message is received.
|
|
Message Listener basic interface.
◆ WeArtMessageListener()
WeArtMessageListener::WeArtMessageListener |
( |
std::set< std::string > |
ids | ) |
|
|
inline |
Basic message listener constructor.
- Parameters
-
ids | List of the ID of accepted messages |
◆ accept()
bool WeArtMessageListener::accept |
( |
std::string |
id | ) |
|
|
inline |
Tells if a given ID can be processed by the listener.
- Parameters
-
id | ID of the message to process |
- Returns
- true if the message is accepted by the listener, false otherwise
◆ OnMessageReceived()
virtual void WeArtMessageListener::OnMessageReceived |
( |
WeArtMessage * |
message | ) |
|
|
pure virtual |
◆ acceptedIds
std::set<std::string> WeArtMessageListener::acceptedIds |
|
protected |
The documentation for this class was generated from the following file: