summaryrefslogtreecommitdiffstats
path: root/signal-composer-binding/signal.cpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-11-23 10:00:09 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2018-11-23 10:00:56 +0100
commit74c0e1f8e2a6dbc5b7485c3b06e12d4ad7f43c6b (patch)
treed518d880d94d7df189ad1a34093dc8ad348691ba /signal-composer-binding/signal.cpp
parente1ef945da61ae0dfec7a5c8d1e9cde2716c0c1fd (diff)
Use specific binder's event handlersguppy_6.99.2guppy/6.99.26.99.2
Use specific binder's event handlers which allows you to bind a callback with an incoming event based on a pattern matching. This replace the global event listener and internal callback search algorythm which is now delegated to the binder. Clean unused constructor Bug-AGL: SPEC-1968 Change-Id: I4b22c003661189fb71498efc4d9021c1a54ae866 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'signal-composer-binding/signal.cpp')
-rw-r--r--signal-composer-binding/signal.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/signal-composer-binding/signal.cpp b/signal-composer-binding/signal.cpp
index 98eddf1..7735a08 100644
--- a/signal-composer-binding/signal.cpp
+++ b/signal-composer-binding/signal.cpp
@@ -25,22 +25,6 @@
#define USEC_TIMESTAMP_FLAG 1506514324881224
-Signal::Signal()
-:id_(""),
- event_(""),
- dependsSigV_(),
- timestamp_(0.0),
- value_(),
- retention_(0),
- frequency_(0),
- unit_(""),
- metadata_(nullptr),
- onReceived_(nullptr),
- getSignalsArgs_(nullptr),
- signalCtx_({nullptr, nullptr, nullptr, nullptr}),
- subscribed_(false)
-{}
-
Signal::Signal(const std::string& id, const std::string& event, std::vector<std::string>& depends, const std::string& unit, json_object *metadata, int retention, double frequency, CtlActionT* onReceived, json_object* getSignalsArgs)
:id_(id),
event_(event),