aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/observable.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-20 18:49:49 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:56 +0200
commite6644d6b235005de9ba1b9884472fa5f5d8d6074 (patch)
treeb6d10d8e3ee8b092933baa55d35480d438bb6328 /src/interfaces/observable.hpp
parent6f9d9fe1d1904ecc5ca52697ec2319a21008120f (diff)
refactor: update event system terminology & structure
Diffstat (limited to 'src/interfaces/observable.hpp')
-rw-r--r--src/interfaces/observable.hpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/interfaces/observable.hpp b/src/interfaces/observable.hpp
deleted file mode 100644
index 21fed76..0000000
--- a/src/interfaces/observable.hpp
+++ /dev/null
@@ -1,20 +0,0 @@
-#pragma once
-
-#include "interfaces/command.hpp"
-
-#include <functional>
-#include <memory>
-
-template <typename Event>
-class IObservable
-{
-public:
- virtual ~IObservable() noexcept = default;
-
- virtual void listen() const noexcept = 0;
-
- virtual void attach(const char &event,
- const std::shared_ptr<ICommand> &command) noexcept = 0;
-
- virtual void notify(const Event &event) const noexcept = 0;
-};