Dev Essential  1.6.3
Loading...
Searching...
No Matches
rpc::jsonrpc_remote_interface< Stub, Interface, Connector, ConnectorInitializer > Class Template Reference

#include <json_rpc.h>

Inherits rpc::jsonrpc_remote_object< Stub, Connector, ConnectorInitializer >, rpc::cJSONConversions, and Interface.

Public Member Functions

 jsonrpc_remote_interface (const ConnectorInitializer &oInitializer)
 

Protected Member Functions

Stub & GetStub () const
 

Additional Inherited Members

- Static Protected Member Functions inherited from rpc::cJSONConversions
static Json::Value result_to_json (a_util::result::Result nResult)
 
static std::string to_string (uint64_t nValue)
 
static std::string to_string (int64_t nValue)
 
static a_util::result::Result json_to_result (const Json::Value &oValue)
 
static uint64_t stoull (const std::string &strValue)
 
static int64_t stoll (const std::string &strValue)
 

Detailed Description

template<typename Stub, typename Interface, typename Connector, typename ConnectorInitializer>
class rpc::jsonrpc_remote_interface< Stub, Interface, Connector, ConnectorInitializer >

Template for mapping interfaces to a client stub.

Template Parameters
StubThe RPC stub to inherit from
InterfaceThe interface to inherit from
ConnectorThe connector to inherit from
ConnectorInitializerThe connector initializer

Constructor & Destructor Documentation

◆ jsonrpc_remote_interface()

template<typename Stub, typename Interface, typename Connector, typename ConnectorInitializer>
rpc::jsonrpc_remote_interface< Stub, Interface, Connector, ConnectorInitializer >::jsonrpc_remote_interface ( const ConnectorInitializer & oInitializer)
inline

Constructor

Parameters
[in]oInitializerAn instance of the ConnectorInitializer. If using http then this is the HTTP url, e.g. http://localhost:8000/system

Member Function Documentation

◆ GetStub()

template<typename Stub, typename Interface, typename Connector, typename ConnectorInitializer>
Stub & rpc::jsonrpc_remote_interface< Stub, Interface, Connector, ConnectorInitializer >::GetStub ( ) const
inlineprotected

Access the rpc stub.

Returns
Reference to the stub.

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