73#ifndef DISABLE_REST_API
79 static UniSetActivatorPtr Instance();
86 void run(
bool async,
bool terminate_control =
true );
103#ifndef DISABLE_REST_API
105 virtual Poco::JSON::Object::Ptr httpGetByName(
const std::string& name,
const Poco::URI::QueryParameters& p )
override;
106 virtual Poco::JSON::Array::Ptr
httpGetObjectsList(
const Poco::URI::QueryParameters& p )
override;
107 virtual Poco::JSON::Object::Ptr httpHelpByName(
const std::string& name,
const Poco::URI::QueryParameters& p )
override;
108 virtual Poco::JSON::Object::Ptr httpRequestByName(
const std::string& name,
const std::string& req,
const Poco::URI::QueryParameters& p )
override;
118 static std::shared_ptr<UniSetActivator> inst;
122 static void on_finish_timeout();
123 static void set_signals(
bool set );
125 std::shared_ptr< OmniThreadCreator<UniSetActivator> > orbthr;
128 bool termControl = {
true };
130#ifndef DISABLE_REST_API
131 std::shared_ptr<uniset::UHttp::UHttpServer> httpserv;
132 std::string httpHost = {
"" };
133 int httpPort = { 0 };
134 std::string httpCORS_allow = {
"*" };