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

#include "ConnectionManager.h"

Inheritance diagram for ConnectionManager:

Public Types

enum  RequestType {
  SendResults , Message , Error , ExecuteNetlist ,
  Message , Error
}
 
enum  RequestType {
  SendResults , Message , Error , ExecuteNetlist ,
  Message , Error
}
 

Public Slots

void send (std::string messageType, std::string message)
 

Public Member Functions

 ConnectionManager (QObject *parent=(QObject *) nullptr)
 
 ~ConnectionManager ()=default
 
void connectToCircuitSimulatorService (const QString &serverName)
 
 ConnectionManager (QObject *parent=(QObject *) nullptr)
 
 ~ConnectionManager ()
 
void startListen (const std::string &_serverName)
 
void queueRequest (RequestType _type, const std::list< std::string > &_data)
 
bool isSingleJsonObject (const QByteArray &data)
 
bool isJsonArray (const QByteArray &data)
 
bool isMixed (const QByteArray &data)
 
int findEndOfJsonObject (const QByteArray &data)
 
QList< QJsonObject > handleMultipleJsonObjects (const QByteArray &jsonStram)
 

Static Public Member Functions

static QString toString (RequestType _type)
 
static QString toString (RequestType _type)
 

Member Enumeration Documentation

◆ RequestType [1/2]

Enumerator
SendResults 
Message 
Error 
ExecuteNetlist 
Message 
Error 

◆ RequestType [2/2]

Enumerator
SendResults 
Message 
Error 
ExecuteNetlist 
Message 
Error 

Constructor & Destructor Documentation

◆ ConnectionManager() [1/2]

ConnectionManager::ConnectionManager ( QObject * parent = (QObject*)nullptr)

◆ ~ConnectionManager() [1/2]

ConnectionManager::~ConnectionManager ( )
default

◆ ConnectionManager() [2/2]

ConnectionManager::ConnectionManager ( QObject * parent = (QObject *) nullptr)

◆ ~ConnectionManager() [2/2]

ConnectionManager::~ConnectionManager ( )

Member Function Documentation

◆ connectToCircuitSimulatorService()

void ConnectionManager::connectToCircuitSimulatorService ( const QString & serverName)

◆ findEndOfJsonObject()

int ConnectionManager::findEndOfJsonObject ( const QByteArray & data)

◆ handleMultipleJsonObjects()

QList< QJsonObject > ConnectionManager::handleMultipleJsonObjects ( const QByteArray & jsonStram)

◆ isJsonArray()

bool ConnectionManager::isJsonArray ( const QByteArray & data)

◆ isMixed()

bool ConnectionManager::isMixed ( const QByteArray & data)

◆ isSingleJsonObject()

bool ConnectionManager::isSingleJsonObject ( const QByteArray & data)

◆ queueRequest()

void ConnectionManager::queueRequest ( RequestType _type,
const std::list< std::string > & _data )

◆ send

void ConnectionManager::send ( std::string messageType,
std::string message )
slot

◆ startListen()

void ConnectionManager::startListen ( const std::string & _serverName)

◆ toString() [1/2]

QString ConnectionManager::toString ( RequestType _type)
static

◆ toString() [2/2]

static QString ConnectionManager::toString ( RequestType _type)
static

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