doc changes; add additional create method for RPC

This commit is contained in:
mrkraimer
2016-07-18 13:05:15 -04:00
parent bf42a5c22d
commit b5d4d178f5
7 changed files with 350 additions and 559 deletions

View File

@@ -547,9 +547,17 @@ PVStructurePtr PvaClientChannel::rpc(
PVStructurePtr PvaClientChannel::rpc(
PVStructurePtr const & pvArgument)
{
return rpc(pvArgument,pvArgument);
PvaClientRPCPtr rpc = createRPC();
return rpc->request(pvArgument);
}
PvaClientRPCPtr PvaClientChannel::createRPC()
{
if(connectState!=connected) connect(5.0);
PvaClientPtr yyy = pvaClient.lock();
if(!yyy) throw std::runtime_error("PvaClient was destroyed");
return PvaClientRPC::create(yyy,channel);
}
PvaClientRPCPtr PvaClientChannel::createRPC(PVStructurePtr const & pvRequest)
{