CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxSocketConnection.h File Reference
#include <QPointer>
#include <QTcpServer>
#include <QMutex>
#include "cxEnumConverter.h"
#include "boost/shared_ptr.hpp"

Go to the source code of this file.

Classes

class  cx::SocketConnection
 
struct  cx::SocketConnection::ConnectionInfo
 

Namespaces

 cx
 Namespace for all CustusX production code.
 

Macros

#define assertRunningInObjectThread()
 

Typedefs

typedef boost::shared_ptr< class SocketConnector > cx::SocketConnectorPtr
 
typedef boost::shared_ptr< class SocketConnection > cx::SocketConnectionPtr
 

Enumerations

enum  cx::CX_SOCKETCONNECTION_STATE {
  cx::scsINACTIVE, cx::scsCONNECTED, cx::scsLISTENING, cx::scsCONNECTING,
  cx::scsCOUNT
}
 

Functions

 SNW_DECLARE_ENUM_STRING_CONVERTERS (cxResource_EXPORT, cx, CX_SOCKETCONNECTION_STATE)
 

Macro Definition Documentation

#define assertRunningInObjectThread ( )
Value:
{ \
if (QThread::currentThread()!=this->thread()) \
{ \
<< QString("Method should be called in the object's thread [%1] only, current thread = [%2]") \
.arg(this->thread()->objectName()) \
.arg(QThread::currentThread()->objectName()); \
} \
} \
#define CX_LOG_ERROR
Definition: cxLogger.h:99

Insert into every method that is only allowed to be called inside the object's own thread.

Definition at line 37 of file cxSocketConnection.h.

Function Documentation

SNW_DECLARE_ENUM_STRING_CONVERTERS ( cxResource_EXPORT  ,
cx  ,
CX_SOCKETCONNECTION_STATE   
)