rogue
Loading...
Searching...
No Matches
Public Member Functions | List of all members
rogue::interfaces::ZmqClientWrap Class Reference

Python-overridable wrapper for ZmqClient. More...

#include <ZmqClient.h>

Inheritance diagram for rogue::interfaces::ZmqClientWrap:
rogue::interfaces::ZmqClient

Public Member Functions

 ZmqClientWrap (const std::string &addr, uint16_t port, bool doString)
 Constructs wrapper client.
 
void doUpdate (boost::python::object data)
 Handles an update message from the subscription path.
 
void defDoUpdate (boost::python::object data)
 Calls base-class doUpdate() implementation.
 
- Public Member Functions inherited from rogue::interfaces::ZmqClient
 ZmqClient (const std::string &addr, uint16_t port, bool doString)
 Constructs a ZeroMQ client and connects sockets.
 
virtual ~ZmqClient ()
 Destroys client and stops background activity.
 
void setTimeout (uint32_t msecs, bool waitRetry)
 Sets request timeout behavior.
 
std::string sendString (const std::string &path, const std::string &attr, const std::string &arg)
 Sends a string-mode request.
 
std::string getDisp (const std::string &path)
 Reads display-formatted value at a path (string mode).
 
void setDisp (const std::string &path, const std::string &value)
 Writes display-formatted value at a path (string mode).
 
std::string exec (const std::string &path, const std::string &arg="")
 Executes callable node at path (string mode).
 
std::string valueDisp (const std::string &path)
 Reads compact value display at a path (string mode).
 
boost::python::object send (boost::python::object data)
 Sends binary request payload and receives binary response.
 
void stop ()
 Stops client sockets and background thread.
 

Additional Inherited Members

- Static Public Member Functions inherited from rogue::interfaces::ZmqClient
static std::shared_ptr< rogue::interfaces::ZmqClientcreate (const std::string &addr, uint16_t port, bool doString)
 Creates a ZeroMQ client.
 
static void setup_python ()
 Registers Python bindings for this class.
 

Detailed Description

Python-overridable wrapper for ZmqClient.

Definition at line 184 of file ZmqClient.h.

Constructor & Destructor Documentation

◆ ZmqClientWrap()

rogue::interfaces::ZmqClientWrap::ZmqClientWrap ( const std::string &  addr,
uint16_t  port,
bool  doString 
)

Constructs wrapper client.

Parameters
addrServer bind address or host.
portBase server port.
doStringtrue for string request mode, false for binary mode.

Definition at line 285 of file ZmqClient.cpp.

Member Function Documentation

◆ defDoUpdate()

void rogue::interfaces::ZmqClientWrap::defDoUpdate ( boost::python::object  data)

Calls base-class doUpdate() implementation.

Default Boost.Python fallback for _doUpdate() when no Python override is provided.

Parameters
dataUpdate payload as a Python object.

Definition at line 299 of file ZmqClient.cpp.

◆ doUpdate()

void rogue::interfaces::ZmqClientWrap::doUpdate ( boost::python::object  data)
virtual

Handles an update message from the subscription path.

Invokes the overridden _doUpdate() Python method when present, then calls the base-class ZmqClient::doUpdate() implementation.

Parameters
dataUpdate payload as a Python object.

Reimplemented from rogue::interfaces::ZmqClient.

Definition at line 288 of file ZmqClient.cpp.


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