diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-09-22 18:16:57 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-14 11:00:25 +0100 |
commit | 51ee5299a7db41e52da2cf52dd9cd9c05b76740a (patch) | |
tree | ecdc922c7c7573ddb0dc091c9cbc3b111a0cc981 /signal-composer-binding/source.hpp | |
parent | a758f4a632adc7fff4769d97379264de6c68685d (diff) |
Finalize subscription to be a simple relay for now
Adding new object holding signals subscribed and afb event
that observes Signals using Reactive response observer design
pattern
Change-Id: I96647d36e0d27c25a399c1b3789621a803a845b6
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'signal-composer-binding/source.hpp')
-rw-r--r-- | signal-composer-binding/source.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/signal-composer-binding/source.hpp b/signal-composer-binding/source.hpp index 0885bf0..8b06b89 100644 --- a/signal-composer-binding/source.hpp +++ b/signal-composer-binding/source.hpp @@ -17,7 +17,7 @@ #pragma once -#include <memory> + #include "signal.hpp" @@ -28,7 +28,7 @@ private: CtlActionT* init_; CtlActionT* getSignals_; - std::map<std::shared_ptr<Signal>, bool> signalsMap_; + std::map<Signal*, bool> signalsMap_; public: SourceAPI(); @@ -38,8 +38,8 @@ public: std::string api() const; void addSignal(const std::string& id, const std::string& event, std::vector<std::string>& sources, const std::string& sClass, const std::string& unit, double frequency, CtlActionT* onReceived, json_object* getSignalsArgs); - std::vector<std::shared_ptr<Signal>> getSignals() const; - std::vector<std::shared_ptr<Signal>> searchSignals(const std::string& name) const; + std::vector<Signal*> getSignals() const; + std::vector<Signal*> searchSignals(const std::string& name) const; int makeSubscription(); }; |