|
pvaClientCPP 4.8.1
|
An easy to use alternative to RPC. More...
#include <pv/pvaClient.h>
Public Member Functions | |
| POINTER_DEFINITIONS (PvaClientRPC) | |
| ~PvaClientRPC () | |
| Destructor. | |
| void | setResponseTimeout (double responseTimeout) |
| Set a timeout for a request. | |
| double | getResponseTimeout () |
| Get the responseTimeout. | |
| void | connect () |
| Call issueConnect and then waitConnect. | |
| void | issueConnect () |
| Issue the channelRPC connection to the channel. | |
| epics::pvData::Status | waitConnect () |
| Wait until the channelRPC connection to the channel is complete. | |
| epics::pvData::PVStructure::shared_pointer | request (epics::pvData::PVStructure::shared_pointer const &pvArgument) |
| Issue a request and wait for response. | |
| void | request (epics::pvData::PVStructure::shared_pointer const &pvArgument, PvaClientRPCRequesterPtr const &pvaClientRPCRequester) |
| issue a request and return immediately. | |
Static Public Member Functions | |
| static PvaClientRPCPtr | create (PvaClientPtr const &pvaClient, epics::pvAccess::Channel::shared_pointer const &channel) |
| Create a PvaClientRPC. | |
| static PvaClientRPCPtr | create (PvaClientPtr const &pvaClient, epics::pvAccess::Channel::shared_pointer const &channel, epics::pvData::PVStructurePtr const &pvRequest) |
| Create a PvaClientRPC. | |
Friends | |
| class | RPCRequesterImpl |
An easy to use alternative to RPC.
Definition at line 1685 of file pvaClient.h.
| epics::pvaClient::PvaClientRPC::~PvaClientRPC | ( | ) |
Destructor.
Definition at line 112 of file pvaClientRPC.cpp.
References epics::pvaClient::PvaClient::getDebug().
| void epics::pvaClient::PvaClientRPC::connect | ( | ) |
Call issueConnect and then waitConnect.
An exception is thrown if connect fails.
Definition at line 216 of file pvaClientRPC.cpp.
References epics::pvaClient::PvaClient::getDebug(), issueConnect(), and waitConnect().
|
static |
Create a PvaClientRPC.
| &pvaClient | Interface to PvaClient |
| channel | Interface to Channel |
Referenced by epics::pvaClient::PvaClientChannel::createRPC().
|
static |
Create a PvaClientRPC.
| &pvaClient | Interface to PvaClient |
| channel | Interface to Channel |
| pvRequest | The request structure. |
|
inline |
| void epics::pvaClient::PvaClientRPC::issueConnect | ( | ) |
Issue the channelRPC connection to the channel.
This can only be called once. An exception is thrown if connect fails.
| runtime_error | if failure. |
Definition at line 232 of file pvaClientRPC.cpp.
References epics::pvaClient::PvaClient::getDebug().
Referenced by connect().
| epics::pvaClient::PvaClientRPC::POINTER_DEFINITIONS | ( | PvaClientRPC | ) |
| epics::pvData::PVStructure::shared_pointer epics::pvaClient::PvaClientRPC::request | ( | epics::pvData::PVStructure::shared_pointer const & | pvArgument | ) |
Issue a request and wait for response.
Note that if responseTimeout is ( lt 0.0, ge 0.0) then this (will, will not) block until response completes or timeout.
| pvArgument | The data to send to the service. |
| runtime_error | if failure. |
| void epics::pvaClient::PvaClientRPC::request | ( | epics::pvData::PVStructure::shared_pointer const & | pvArgument, |
| PvaClientRPCRequesterPtr const & | pvaClientRPCRequester ) |
issue a request and return immediately.
| pvArgument | The data to send to the service. |
| pvaClientRPCRequester | The requester that is called with the result. |
| runtime_error | if failure. |
|
inline |
Set a timeout for a request.
| responseTimeout | The time in seconds to wait for a request to complete. |
Definition at line 1716 of file pvaClient.h.
| Status epics::pvaClient::PvaClientRPC::waitConnect | ( | ) |
Wait until the channelRPC connection to the channel is complete.
Definition at line 252 of file pvaClientRPC.cpp.
References epics::pvaClient::PvaClient::getDebug().
Referenced by connect().
|
friend |
Definition at line 1800 of file pvaClient.h.