31 #ifndef ISCRIPTINFO_H_ 32 #define ISCRIPTINFO_H_ 34 #include "../Sockets/ServerInfo.h" 35 #include "../Encoding/Http.h" 39 #include <condition_variable> 42 #include "../Sockets/TcpSocket.h" 50 namespace ScriptEngine
56 class ScriptInfoDevice;
126 ScriptInfo(
ScriptType type, std::string& fullPath, std::string& relativePath, std::string& arguments);
129 ScriptInfo(
ScriptType type, std::string& fullPath, std::string& relativePath, std::string& script, std::string& arguments);
130 ScriptInfo(
ScriptType type, std::string& fullPath, std::string& relativePath, std::string& script, std::string& arguments, int64_t peerId);
std::string contentPath
Definition: ScriptInfo.h:90
uint32_t inputPort
Definition: ScriptInfo.h:96
ScriptInfo(ScriptType type)
Definition: ScriptInfo.cpp:43
This is the base library main class.
Definition: BaseLib.h:95
std::string script
Definition: ScriptInfo.h:92
std::string fullPath
Definition: ScriptInfo.h:81
int32_t customId
Definition: ScriptInfo.h:84
std::condition_variable requestConditionVariable
Definition: ScriptInfo.h:119
virtual ~ScriptInfo()=default
Definition: RpcClientInfo.h:72
std::function< void(PScriptInfo &scriptInfo, int32_t exitCode)> scriptFinishedCallback
Definition: ScriptInfo.h:115
Definition: BaseLib.cpp:34
ScriptType _type
Definition: ScriptInfo.h:136
Http http
Definition: ScriptInfo.h:87
std::shared_ptr< RpcClientInfo > PRpcClientInfo
Definition: ScriptInfo.h:47
std::shared_ptr< ScriptInfoWeb > PScriptInfoWeb
Definition: ScriptInfo.h:59
std::mutex requestMutex
Definition: ScriptInfo.h:118
bool returnOutput
Definition: ScriptInfo.h:85
PVariable message
Definition: ScriptInfo.h:97
std::shared_ptr< ScriptInfo > PScriptInfo
Definition: ScriptInfo.h:56
std::string arguments
Definition: ScriptInfo.h:83
std::function< void(PScriptInfo &scriptInfo, std::string &output, bool error)> scriptOutputCallback
Definition: ScriptInfo.h:110
bool started
Definition: ScriptInfo.h:103
std::shared_ptr< Variable > PVariable
Definition: PhysicalInterfaceSettings.h:41
PRpcClientInfo clientInfo
Definition: ScriptInfo.h:89
bool finished
Definition: ScriptInfo.h:104
std::string relativePath
Definition: ScriptInfo.h:82
This class provides hooks into the script engine server so family modules can be notified about finis...
Definition: ScriptInfo.h:65
std::shared_ptr< ServerInfo::Info > PServerInfo
Definition: ServerInfo.h:118
Rpc::PServerInfo serverInfo
Definition: ScriptInfo.h:88
ScriptType
Definition: ScriptInfo.h:68
std::shared_ptr< ScriptInfoDevice > PScriptInfoDevice
Definition: ScriptInfo.h:60
int64_t peerId
Definition: ScriptInfo.h:93
PTcpSocket socket
Definition: ScriptInfo.h:122
std::function< void(PScriptInfo &scriptInfo, PVariable &headers)> scriptHeadersCallback
Definition: ScriptInfo.h:111
PVariable nodeInfo
Definition: ScriptInfo.h:95
uint32_t maxThreadCount
Definition: ScriptInfo.h:99
std::shared_ptr< ScriptInfoCli > PScriptInfoCli
Definition: ScriptInfo.h:58
int32_t exitCode
Definition: ScriptInfo.h:105
std::shared_ptr< BaseLib::TcpSocket > PTcpSocket
Definition: TcpSocket.h:697
std::string output
Definition: ScriptInfo.h:106
ScriptType getType()
Definition: ScriptInfo.h:134