From 22138a36aa5d73f2edb50466e401830d197a8793 Mon Sep 17 00:00:00 2001 From: sippeangelo Date: Mon, 28 Apr 2014 06:03:45 +0200 Subject: [PATCH] MessageRelay renamed to EventRelay --- src/{MessageRelay.h => EventRelay.h} | 10 +++++----- vs11/Returngeance/Returngeance.vcxproj | 2 +- vs11/Returngeance/Returngeance.vcxproj.filters | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) rename src/{MessageRelay.h => EventRelay.h} (79%) diff --git a/src/MessageRelay.h b/src/EventRelay.h similarity index 79% rename from src/MessageRelay.h rename to src/EventRelay.h index 692f8a7..a7629af 100644 --- a/src/MessageRelay.h +++ b/src/EventRelay.h @@ -5,17 +5,17 @@ #include #include -struct Message +struct Event { protected: - Message() { } + Event() { } }; -class MessageRelay +class EventRelay { private: typedef std::string MessageType_t; - typedef std::function MessageCallback_t; + typedef std::function MessageCallback_t; public: void Subscribe(std::string messageType, MessageCallback_t callback) @@ -23,7 +23,7 @@ public: m_Callbacks[messageType].push_back(callback); } - void Raise(std::string messageType, Message message) + void Raise(std::string messageType, Event message) { auto callbackIt = m_Callbacks.find(messageType); if (callbackIt == m_Callbacks.end()) diff --git a/vs11/Returngeance/Returngeance.vcxproj b/vs11/Returngeance/Returngeance.vcxproj index f2e85c8..64aea48 100755 --- a/vs11/Returngeance/Returngeance.vcxproj +++ b/vs11/Returngeance/Returngeance.vcxproj @@ -140,7 +140,7 @@ - + diff --git a/vs11/Returngeance/Returngeance.vcxproj.filters b/vs11/Returngeance/Returngeance.vcxproj.filters index 67c8abe..e716742 100755 --- a/vs11/Returngeance/Returngeance.vcxproj.filters +++ b/vs11/Returngeance/Returngeance.vcxproj.filters @@ -220,10 +220,10 @@ GUI - Util +