utility: Added messaging system
To use the messaging system the classes Message and MessageListener need to get derived. The Singelton MessageQueue is responsible for managing listeners and sending messages in a threadsafe way. review id = 9 fortune cookie message = You are on your track to starting something new.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#ifndef MESSAGE_BASE_H
|
||||
#define MESSAGE_BASE_H
|
||||
|
||||
#include <string>
|
||||
|
||||
class MessageBase
|
||||
{
|
||||
public:
|
||||
virtual ~MessageBase()
|
||||
{
|
||||
}
|
||||
|
||||
virtual std::string getType() const = 0;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_BASE_H
|
||||
Reference in New Issue
Block a user