26#ifndef _mtsSocketProxyClient_h
27#define _mtsSocketProxyClient_h
35class CommandWrapperBase;
57 void ToStream(std::ostream & outputStream)
const override;
60 void ToStreamRaw(std::ostream & outputStream,
const char delimiter =
' ',
61 bool headerOnly =
false,
const std::string & headerPrefix =
"")
const override;
65 bool FromStreamRaw(std::istream & inputStream,
const char delimiter =
' ')
override;
99 void EventEnable(
const std::string &eventName,
const char *handle);
Definition mtsCommandWriteBase.h:40
Base class for data object in cisstMultiTask.
Definition mtsGenericObject.h:52
mtsGenericObject(void)
Definition mtsGenericObject.h:77
Definition mtsSocketProxyClient.h:40
bool FromStreamRaw(std::istream &inputStream, const char delimiter=' ') override
void ToStream(std::ostream &outputStream) const override
void SerializeRaw(std::ostream &outputStream) const override
void ToStreamRaw(std::ostream &outputStream, const char delimiter=' ', bool headerOnly=false, const std::string &headerPrefix="") const override
std::string Name
Definition mtsSocketProxyClient.h:43
mtsSocketProxyClientConstructorArg(const mtsSocketProxyClientConstructorArg &other)
Definition mtsSocketProxyClient.h:50
~mtsSocketProxyClientConstructorArg()
Definition mtsSocketProxyClient.h:52
std::string IP
Definition mtsSocketProxyClient.h:44
mtsSocketProxyClientConstructorArg(const std::string &name, const std::string &ip, short port)
Definition mtsSocketProxyClient.h:48
short Port
Definition mtsSocketProxyClient.h:45
void DeSerializeRaw(std::istream &inputStream) override
mtsSocketProxyClientConstructorArg()
Definition mtsSocketProxyClient.h:47
Definition mtsSocketProxyClient.h:71
void Startup(void) override
std::vector< mtsCommandBase * > EventGenerators
Definition mtsSocketProxyClient.h:82
friend class CommandWrapperBase
Definition mtsSocketProxyClient.h:104
void Configure(const std::string &) override
Definition mtsSocketProxyClient.h:122
bool CheckForEventsImmediate(double timeoutInSec)
void CheckForEvents(double timeoutInSec)
void EventDisable(const std::string &eventName, const char *handle)
friend class MulticastCommandVoidProxy
Definition mtsSocketProxyClient.h:105
osaSocket Socket
Definition mtsSocketProxyClient.h:76
mtsProxySerializer * Serializer
Definition mtsSocketProxyClient.h:77
friend class MulticastCommandWriteProxy
Definition mtsSocketProxyClient.h:106
mtsCommandWriteBase * localUnblockingCommand
Definition mtsSocketProxyClient.h:85
bool Serialize(const mtsGenericObject &originalObject, std::string &serializedObject)
void EventEnable(const std::string &eventName, const char *handle)
void LocalUnblockingHandler(const mtsGenericObject &arg)
void Cleanup(void) override
mtsSocketProxyClient(const std::string &name, const std::string &ip, short port)
mtsCommandWriteBase * EventEnableCommand
Definition mtsSocketProxyClient.h:97
mtsSocketProxyInitData ServerData
Definition mtsSocketProxyClient.h:79
bool DeSerialize(const std::string &serializedObject, mtsGenericObject &originalObject)
mtsCommandWriteBase * EventDisableCommand
Definition mtsSocketProxyClient.h:98
mtsSocketProxyClient(const mtsSocketProxyClientConstructorArg &arg)
bool CreateClientProxy(const std::string &providedInterfaceName)
Create client proxy.
bool LocalWaiting
Definition mtsSocketProxyClient.h:84
virtual ~mtsSocketProxyClient()
bool WaitForResponse(double timeoutInSec)
mtsGenericObject * DeSerialize(const std::string &serializedObject)
Definition mtsSocketProxyCommon.h:79
mtsTaskContinuous(const std::string &name, unsigned int sizeStateTable=256, bool newThread=true)
Definition osaSocket.h:175
const int CMN_DYNAMIC_CREATION_ONEARG
Definition cmnClassRegisterMacros.h:330
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition cmnClassRegisterMacros.h:199
const int CMN_DYNAMIC_CREATION
Definition cmnClassRegisterMacros.h:328
#define CISST_EXPORT
Definition cmnExportMacros.h:50
#define CMN_LOG_ALLOW_DEFAULT
Definition cmnLogLoD.h:76
Forward declarations and #define for cisstMultiTask.
Common definitions for mtsSocketProxyClient and mtsSocketProxyServer.
Defines a continuously executing task.
Declaration of osaSocket.