summaryrefslogtreecommitdiffstats
path: root/signal-composer-binding/source.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-12-07 18:49:09 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-12-14 11:00:49 +0100
commite599b4ba129df475a9c8bb8290c3803f9dda664a (patch)
tree98ed8edbd2bb1bcc481fadc5ac0037c87b0608d2 /signal-composer-binding/source.hpp
parentfb487caec38c0da7a43bab850af6aa79b07befde (diff)
Load additionnals object at runtime
Later integrated in controller submodule Change-Id: I7d5c7431e60fc16cc2053747674fe4f14efd6a14 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'signal-composer-binding/source.hpp')
-rw-r--r--signal-composer-binding/source.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/signal-composer-binding/source.hpp b/signal-composer-binding/source.hpp
index 5c1e074..3d44922 100644
--- a/signal-composer-binding/source.hpp
+++ b/signal-composer-binding/source.hpp
@@ -33,7 +33,8 @@ private:
// Parameters inherited by source's signals if none defined for it
struct signalsDefault signalsDefault_;
- std::map<std::string, std::shared_ptr<Signal>> signalsMap_;
+ std::map<std::string, std::shared_ptr<Signal>> newSignalsM_;
+ std::map<std::string, std::shared_ptr<Signal>> signalsM_;
public:
SourceAPI();
@@ -44,6 +45,7 @@ public:
const struct signalsDefault& signalsDefault() const;
void addSignal(const std::string& id, const std::string& event, std::vector<std::string>& sources, int retention, const std::string& unit, double frequency, CtlActionT* onReceived, json_object* getSignalsArgs);
+ void initSignals();
std::vector<std::shared_ptr<Signal>> getSignals() const;
std::vector<std::shared_ptr<Signal>> searchSignals(const std::string& name);