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

#include "CommunicationHandler.h"

Inheritance diagram for CommunicationHandler:

Signals

void disconnected (void)
 

Public Member Functions

 CommunicationHandler ()
 
virtual ~CommunicationHandler ()
 
void setServerName (const std::string &_serverName)
 
const std::string & getServerName (void) const
 
bool ensureConnectionToServer (void)
 
 CommunicationHandler (SubprocessManager *_manager, const std::string &_serverName)
 
 ~CommunicationHandler ()
 
bool sendToClient (const ot::JsonDocument &_document, std::string &_response)
 
void setModelUrl (const std::string &_url)
 
void setFrontendUrl (const std::string &_url)
 
void setDataBaseInfo (const DataBaseInfo &_info)
 
const std::string & getServerName (void) const
 
bool sendConfigToClient (void)
 
void cleanupAfterCrash (void)
 

Constructor & Destructor Documentation

◆ CommunicationHandler() [1/2]

CommunicationHandler::CommunicationHandler ( )

◆ ~CommunicationHandler() [1/2]

CommunicationHandler::~CommunicationHandler ( )
virtual

◆ CommunicationHandler() [2/2]

CommunicationHandler::CommunicationHandler ( SubprocessManager * _manager,
const std::string & _serverName )

◆ ~CommunicationHandler() [2/2]

CommunicationHandler::~CommunicationHandler ( )

Member Function Documentation

◆ cleanupAfterCrash()

void CommunicationHandler::cleanupAfterCrash ( void )

◆ disconnected

void CommunicationHandler::disconnected ( void )
signal

◆ ensureConnectionToServer()

bool CommunicationHandler::ensureConnectionToServer ( void )

◆ getServerName() [1/2]

const std::string & CommunicationHandler::getServerName ( void ) const
inline

◆ getServerName() [2/2]

const std::string & CommunicationHandler::getServerName ( void ) const
inline

◆ sendConfigToClient()

bool CommunicationHandler::sendConfigToClient ( void )

◆ sendToClient()

bool CommunicationHandler::sendToClient ( const ot::JsonDocument & _document,
std::string & _response )

◆ setDataBaseInfo()

void CommunicationHandler::setDataBaseInfo ( const DataBaseInfo & _info)
inline

◆ setFrontendUrl()

void CommunicationHandler::setFrontendUrl ( const std::string & _url)
inline

◆ setModelUrl()

void CommunicationHandler::setModelUrl ( const std::string & _url)
inline

◆ setServerName()

void CommunicationHandler::setServerName ( const std::string & _serverName)
inline

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