diff options
Diffstat (limited to 'src/interfaces/publisher.hpp')
-rw-r--r-- | src/interfaces/publisher.hpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/interfaces/publisher.hpp b/src/interfaces/publisher.hpp deleted file mode 100644 index 2c47c34..0000000 --- a/src/interfaces/publisher.hpp +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once - -#include "interfaces/subscriber.hpp" - -#include <functional> -#include <memory> - -template <typename Event, typename Context> -// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions) -class IPublisher -{ -public: - virtual ~IPublisher() noexcept = default; - - virtual void subscribe( - const Event &event, - const std::shared_ptr<ISubscriber<Context>> &subscriber) noexcept = 0; - - virtual void - notify_subscribers(const Event &event, const Context &context) const noexcept = 0; -}; |