diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-09-21 18:15:13 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-14 11:00:25 +0100 |
commit | c27b88e3c36585d11e866902f73d1e961357c45c (patch) | |
tree | 2f38106fc68a0e039d3fccde221b02ea93b5dea6 /signal-composer-binding/signal-composer.hpp | |
parent | e93cb3415e883bbd73528ca6a08e53e854f7bee0 (diff) |
Rename bindingApp to Composer
Change-Id: Ib3256f5c89197a91d2bbfca7a92774e91de6f664
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'signal-composer-binding/signal-composer.hpp')
-rw-r--r-- | signal-composer-binding/signal-composer.hpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/signal-composer-binding/signal-composer.hpp b/signal-composer-binding/signal-composer.hpp index 5cf5858..bbc9a36 100644 --- a/signal-composer-binding/signal-composer.hpp +++ b/signal-composer-binding/signal-composer.hpp @@ -16,13 +16,14 @@ */ #pragma once +#include <uuid.h> #include <memory> #include <vector> #include <string> #include "source.hpp" -class bindingApp +class Composer { private: CtlConfigT* ctlConfig_; @@ -30,9 +31,9 @@ private: static CtlSectionT ctlSections_[]; ///< Config Section definition (note: controls section index should match handle retrieval in) std::vector<SourceAPI> sourcesListV_; - explicit bindingApp(const std::string& filepath); - bindingApp(); - ~bindingApp(); + explicit Composer(const std::string& filepath); + Composer(); + ~Composer(); CtlActionT* convert2Action(const std::string& name, json_object* action); @@ -42,8 +43,11 @@ private: int loadOneSignal(json_object* signalsJ); static int loadSignals(CtlSectionT* section, json_object *signalsJ); + void processOptions(const char** opts, std::shared_ptr<Signal> sig, json_object* response) const; public: - static bindingApp& instance(); + static Composer& instance(); + static void* createContext(void* ctx); + static void destroyContext(void* ctx); static std::vector<std::string> parseURI(const std::string& uri); int loadConfig(const std::string& filepath); int loadSignals(json_object* signalsJ); @@ -54,7 +58,6 @@ public: SourceAPI* getSourceAPI(const std::string& api); std::vector<std::shared_ptr<Signal>> searchSignals(const std::string& aName); json_object* getSignalValue(const std::string& sig, json_object* options); - void processOptions(const char** opts, std::shared_ptr<Signal> sig, json_object* response) const; int execSubscription(); }; |