17namespace std {
class thread; }
45 void shutdownSubprocess(
void);
49 bool ensureWorkerRunning(
void);
53 bool isWorkerAlive(
void);
56 void worker(std::string _projectName);
58 std::thread* m_workerThread;
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NODEFAULT(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:22
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
Definition Application.h:25
Definition CommunicationHandler.h:11
Definition DataBaseInfo.h:6
Definition SubprocessHandler.h:18
Definition SubprocessManager.h:19
SubprocessManager(Application *_app)
Definition SubprocessManager.cpp:14
~SubprocessManager()
Definition SubprocessManager.cpp:24
void setModelUrl(const std::string &_url)
Definition SubprocessManager.cpp:39
void stopConnectionHandlingAfterCrash(void)
Stops the connection handler.
Definition SubprocessManager.cpp:112
void setFrontendUrl(const std::string &_url)
Definition SubprocessManager.cpp:52
bool ensureSubprocessRunning(void)
Definition SubprocessManager.cpp:97
void setDataBaseInfo(const DataBaseInfo &_info)
Definition SubprocessManager.cpp:65
bool sendRequest(const ot::JsonDocument &_document, std::string &_response)
Sends the request to the Subprocess. Will start the subprocess if needed.
Definition SubprocessManager.cpp:78
bool sendSingleRequest(const ot::JsonDocument &_document, std::string &_response)
Sends the request to the Subprocess. Will start the subprocess if needed. Will shutdown the subproces...
Definition SubprocessManager.cpp:91
JSON document.
Definition JSON.h:276