cisst-saw
|
#include <mtsConnection.h>
Public Member Functions | |
mtsConnection (const mtsDescriptionConnection &description, const std::string &requestProcessName) | |
ConnectionIDType | GetConnectionID (void) const |
std::string | GetClientProcessName (void) const |
std::string | GetClientComponentName (void) const |
std::string | GetClientInterfaceName (void) const |
std::string | GetServerProcessName (void) const |
std::string | GetServerComponentName (void) const |
std::string | GetServerInterfaceName (void) const |
mtsDescriptionConnection | GetDescriptionConnection (void) const |
void | GetDescriptionConnection (mtsDescriptionConnection &description) const |
bool | IsConnected (void) const |
void | SetConnected (void) |
bool | IsRemoteConnection (void) const |
std::string | GetEndpointInfo (void) const |
void | SetProxyAccessInfo (const std::string &endpointInfo) |
bool | CheckTimeout (void) const |
void | ToStream (std::ostream &outputStream) const |
void | SerializeRaw (std::ostream &outputStream) const |
void | DeSerializeRaw (std::istream &inputStream) |
![]() | |
mtsGenericObject (void) | |
mtsGenericObject (double timestamp, bool automaticTimestamp, bool valid) | |
mtsGenericObject (const mtsGenericObject &other) | |
virtual | ~mtsGenericObject (void) |
bool | SetTimestampIfAutomatic (double timestamp) |
virtual void | ToStreamRaw (std::ostream &outputStream, const char delimiter= ' ', bool headerOnly=false, const std::string &headerPrefix="") const |
virtual bool | FromStreamRaw (std::istream &inputStream, const char delimiter= ' ') |
size_t | ScalarNumber (void) const |
bool | ScalarNumberIsFixed (void) const |
double | Scalar (const size_t index) const throw (std::out_of_range) |
std::string | ScalarDescription (const size_t index, const std::string &userDescription="") const throw (std::out_of_range) |
![]() | |
virtual | ~cmnGenericObject (void) |
virtual const cmnClassServicesBase * | Services (void) const =0 |
bool | ReconstructFrom (const cmnGenericObject &other) |
std::string | ToString (void) const |
virtual cmnLogger::StreamBufType * | GetLogMultiplexer (void) const |
virtual double | Scalar (const size_t CMN_UNUSED(index)) const throw (std::out_of_range) |
virtual std::string | ScalarDescription (const size_t CMN_UNUSED(index), const std::string &CMN_UNUSED(userDescription)) const |
Protected Attributes | |
mtsDescriptionConnection | ConnectionDescription |
const std::string | RequestProcessName |
bool | Connected |
std::string | EndpointInfo |
double | TimeoutTime |
Data structure to keep connection information
mtsConnection::mtsConnection | ( | const mtsDescriptionConnection & | description, |
const std::string & | requestProcessName | ||
) |
bool mtsConnection::CheckTimeout | ( | void | ) | const |
In the state of pending connection, check if this connection should be invalidated due to connection timeout
|
virtual |
Binary deserialization
Reimplemented from mtsGenericObject.
std::string mtsConnection::GetClientComponentName | ( | void | ) | const |
std::string mtsConnection::GetClientInterfaceName | ( | void | ) | const |
std::string mtsConnection::GetClientProcessName | ( | void | ) | const |
ConnectionIDType mtsConnection::GetConnectionID | ( | void | ) | const |
Getters and Setters
mtsDescriptionConnection mtsConnection::GetDescriptionConnection | ( | void | ) | const |
void mtsConnection::GetDescriptionConnection | ( | mtsDescriptionConnection & | description | ) | const |
|
inline |
std::string mtsConnection::GetServerComponentName | ( | void | ) | const |
std::string mtsConnection::GetServerInterfaceName | ( | void | ) | const |
std::string mtsConnection::GetServerProcessName | ( | void | ) | const |
|
inline |
bool mtsConnection::IsRemoteConnection | ( | void | ) | const |
|
virtual |
Binary serialization
Reimplemented from mtsGenericObject.
|
inline |
|
inline |
|
virtual |
Human readable text output. This method only streams the data members of mtsGenericObject, i.e. the Timestamp and Valid flag. It should be called by any derived class re-implementing ToStream.
Reimplemented from mtsGenericObject.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |