libhomegear-base
0.7
Base library for Homegear and Homegear family modules.
|
This class provides hooks into the script engine server so family modules can be notified about finished script executions. More...
#include <ScriptInfo.h>
Public Types | |
enum | ScriptType { ScriptType::cli, ScriptType::device, ScriptType::device2, ScriptType::web, ScriptType::simpleNode, ScriptType::statefulNode } |
Public Attributes | |
int32_t | id = 0 |
std::string | fullPath |
std::string | relativePath |
std::string | arguments |
int32_t | customId = 0 |
bool | returnOutput = false |
Http | http |
Rpc::PServerInfo | serverInfo |
PRpcClientInfo | clientInfo |
std::string | contentPath |
std::string | script |
int64_t | peerId = 0 |
PVariable | nodeInfo |
uint32_t | inputPort = 0 |
PVariable | message |
uint32_t | maxThreadCount = 0 |
bool | started = false |
bool | finished = false |
int32_t | exitCode = -1 |
std::string | output |
std::function< void(PScriptInfo &scriptInfo, std::string &output, bool error)> | scriptOutputCallback |
std::function< void(PScriptInfo &scriptInfo, PVariable &headers)> | scriptHeadersCallback |
std::function< void(PScriptInfo &scriptInfo, int32_t exitCode)> | scriptFinishedCallback |
std::mutex | requestMutex |
std::condition_variable | requestConditionVariable |
PTcpSocket | socket |
Protected Attributes | |
ScriptType | _type = ScriptType::cli |
This class provides hooks into the script engine server so family modules can be notified about finished script executions.
|
strong |
|
explicit |
BaseLib::ScriptEngine::ScriptInfo::ScriptInfo | ( | ScriptInfo::ScriptType | type, |
std::string & | fullPath, | ||
std::string & | relativePath, | ||
std::string & | arguments | ||
) |
BaseLib::ScriptEngine::ScriptInfo::ScriptInfo | ( | ScriptInfo::ScriptType | type, |
std::string & | contentPath, | ||
std::string & | fullPath, | ||
std::string & | relativePath, | ||
Http & | http, | ||
Rpc::PServerInfo & | serverInfo, | ||
PRpcClientInfo & | clientInfo | ||
) |
BaseLib::ScriptEngine::ScriptInfo::ScriptInfo | ( | BaseLib::SharedObjects * | bl, |
ScriptInfo::ScriptType | type, | ||
std::string & | contentPath, | ||
std::string & | fullPath, | ||
std::string & | relativePath, | ||
PVariable | http, | ||
PVariable | serverInfo, | ||
PVariable | clientInfo | ||
) |
BaseLib::ScriptEngine::ScriptInfo::ScriptInfo | ( | ScriptInfo::ScriptType | type, |
std::string & | fullPath, | ||
std::string & | relativePath, | ||
std::string & | script, | ||
std::string & | arguments | ||
) |
BaseLib::ScriptEngine::ScriptInfo::ScriptInfo | ( | ScriptInfo::ScriptType | type, |
std::string & | fullPath, | ||
std::string & | relativePath, | ||
std::string & | script, | ||
std::string & | arguments, | ||
int64_t | peerId | ||
) |
BaseLib::ScriptEngine::ScriptInfo::ScriptInfo | ( | ScriptInfo::ScriptType | type, |
PVariable | nodeInfo, | ||
std::string & | fullPath, | ||
std::string & | relativePath, | ||
uint32_t | inputPort, | ||
PVariable | message | ||
) |
BaseLib::ScriptEngine::ScriptInfo::ScriptInfo | ( | ScriptInfo::ScriptType | type, |
PVariable | nodeInfo, | ||
std::string & | fullPath, | ||
std::string & | relativePath, | ||
uint32_t | maxThreadCount | ||
) |
|
virtualdefault |
|
inline |
|
protected |
std::string BaseLib::ScriptEngine::ScriptInfo::arguments |
PRpcClientInfo BaseLib::ScriptEngine::ScriptInfo::clientInfo |
std::string BaseLib::ScriptEngine::ScriptInfo::contentPath |
int32_t BaseLib::ScriptEngine::ScriptInfo::customId = 0 |
int32_t BaseLib::ScriptEngine::ScriptInfo::exitCode = -1 |
bool BaseLib::ScriptEngine::ScriptInfo::finished = false |
std::string BaseLib::ScriptEngine::ScriptInfo::fullPath |
Http BaseLib::ScriptEngine::ScriptInfo::http |
int32_t BaseLib::ScriptEngine::ScriptInfo::id = 0 |
uint32_t BaseLib::ScriptEngine::ScriptInfo::inputPort = 0 |
uint32_t BaseLib::ScriptEngine::ScriptInfo::maxThreadCount = 0 |
PVariable BaseLib::ScriptEngine::ScriptInfo::message |
PVariable BaseLib::ScriptEngine::ScriptInfo::nodeInfo |
std::string BaseLib::ScriptEngine::ScriptInfo::output |
int64_t BaseLib::ScriptEngine::ScriptInfo::peerId = 0 |
std::string BaseLib::ScriptEngine::ScriptInfo::relativePath |
std::condition_variable BaseLib::ScriptEngine::ScriptInfo::requestConditionVariable |
std::mutex BaseLib::ScriptEngine::ScriptInfo::requestMutex |
bool BaseLib::ScriptEngine::ScriptInfo::returnOutput = false |
std::string BaseLib::ScriptEngine::ScriptInfo::script |
std::function<void(PScriptInfo& scriptInfo, int32_t exitCode)> BaseLib::ScriptEngine::ScriptInfo::scriptFinishedCallback |
std::function<void(PScriptInfo& scriptInfo, PVariable& headers)> BaseLib::ScriptEngine::ScriptInfo::scriptHeadersCallback |
std::function<void(PScriptInfo& scriptInfo, std::string& output, bool error)> BaseLib::ScriptEngine::ScriptInfo::scriptOutputCallback |
Rpc::PServerInfo BaseLib::ScriptEngine::ScriptInfo::serverInfo |
PTcpSocket BaseLib::ScriptEngine::ScriptInfo::socket |
bool BaseLib::ScriptEngine::ScriptInfo::started = false |