OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
SubprocessManager Class Reference

#include "SubprocessManager.h"

Public Member Functions

 SubprocessManager (Application *_app)
 
 ~SubprocessManager ()
 
void setModelUrl (const std::string &_url)
 
void setFrontendUrl (const std::string &_url)
 
void setDataBaseInfo (const DataBaseInfo &_info)
 
bool sendRequest (const ot::JsonDocument &_document, std::string &_response)
 Sends the request to the Subprocess. Will start the subprocess if needed.
 
bool sendSingleRequest (const ot::JsonDocument &_document, std::string &_response)
 Sends the request to the Subprocess. Will start the subprocess if needed. Will shutdown the subprocess after finished.
 
bool ensureSubprocessRunning (void)
 
void stopConnectionHandlingAfterCrash (void)
 Stops the connection handler.
 

Constructor & Destructor Documentation

◆ SubprocessManager()

SubprocessManager::SubprocessManager ( Application * _app)

◆ ~SubprocessManager()

SubprocessManager::~SubprocessManager ( )

Member Function Documentation

◆ ensureSubprocessRunning()

bool SubprocessManager::ensureSubprocessRunning ( void )

◆ sendRequest()

bool SubprocessManager::sendRequest ( const ot::JsonDocument & _document,
std::string & _response )

Sends the request to the Subprocess. Will start the subprocess if needed.

◆ sendSingleRequest()

bool SubprocessManager::sendSingleRequest ( const ot::JsonDocument & _document,
std::string & _response )

Sends the request to the Subprocess. Will start the subprocess if needed. Will shutdown the subprocess after finished.

◆ setDataBaseInfo()

void SubprocessManager::setDataBaseInfo ( const DataBaseInfo & _info)

◆ setFrontendUrl()

void SubprocessManager::setFrontendUrl ( const std::string & _url)

◆ setModelUrl()

void SubprocessManager::setModelUrl ( const std::string & _url)

◆ stopConnectionHandlingAfterCrash()

void SubprocessManager::stopConnectionHandlingAfterCrash ( void )

Stops the connection handler.


The documentation for this class was generated from the following files: