summaryrefslogtreecommitdiffstats
path: root/signal-composer-binding/source.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-09-14 19:31:42 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-12-14 11:00:25 +0100
commiteabae24ea592420de46e36f0b1af5d39eee5b8a4 (patch)
tree16cbc39e84eb71d655add40e715f7d87b4b02132 /signal-composer-binding/source.hpp
parent140fd3d8f76a8cbbde8f6b0bf997808855f3da43 (diff)
Attach and recursion check working
Change-Id: I2f9509d4b6aa63a16df8db2187810337fd802ef4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'signal-composer-binding/source.hpp')
-rw-r--r--signal-composer-binding/source.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/signal-composer-binding/source.hpp b/signal-composer-binding/source.hpp
index 694daae..c1644c5 100644
--- a/signal-composer-binding/source.hpp
+++ b/signal-composer-binding/source.hpp
@@ -18,12 +18,10 @@
#pragma once
#include <memory>
-#include <ctl-config.h>
-#include <signal-composer-binding.hpp>
#include "signal.hpp"
-class Source {
+class SourceAPI {
private:
std::string api_;
std::string info_;
@@ -33,10 +31,12 @@ private:
std::vector<std::shared_ptr<Signal>> signals_;
public:
- Source();
- Source(const std::string& api, const std::string& info, CtlActionT* init, CtlActionT* getSignal);
+ SourceAPI();
+ SourceAPI(const std::string& api, const std::string& info, CtlActionT* init, CtlActionT* getSignal);
- std::string api();
+ std::string api() const;
void addSignal(const std::string& id, std::vector<std::string>& sources, const std::string& sClass, const std::string& unit, double frequency, CtlActionT* onReceived);
- std::vector<std::shared_ptr<Signal>> getSignals();
+
+ std::vector<std::shared_ptr<Signal>> getSignals() const;
+ std::shared_ptr<Signal> searchSignal(const std::string& name) const;
};