ADTF  3.18.2
jsonrpc_remote_interface< Stub, Interface, Connector, ConnectorInitializer >

Template for mapping interfaces to a client stub. More...

Inheritance diagram for jsonrpc_remote_interface< Stub, Interface, Connector, ConnectorInitializer >:
[legend]

Public Member Functions

 jsonrpc_remote_interface (const ConnectorInitializer &oInitializer)
 Constructor. More...
 

Protected Member Functions

Stub & GetStub () const
 Access the rpc stub. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from cJSONConversions
static Json::Value result_to_json (a_util::result::Result nResult)
 Get the Json::Value representation of an object of type a_util::result::Result. More...
 
static std::string to_string (uint64_t nValue)
 Convert an unsigned integer to a string. More...
 
static std::string to_string (int64_t nValue)
 Convert a signed integer to a string. More...
 
static a_util::result::Result json_to_result (const Json::Value &oValue)
 Get the a_util::result::Result representation of an object of type Json::Value. More...
 
static uint64_t stoull (const std::string &strValue)
 Convert a string to an unsigned integer. More...
 
static int64_t stoll (const std::string &strValue)
 Convert a string to a signed integer. More...
 
- Private Member Functions inherited from jsonrpc_remote_object< Stub, Connector, ConnectorInitializer >
 jsonrpc_remote_object (const ConnectorInitializer &oInitializer)
 Constructor. More...
 
Stub & GetStub () const
 Access the rpc stub. More...
 

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

Definition at line 102 of file json_rpc.h.

Constructor & Destructor Documentation

◆ jsonrpc_remote_interface()

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

Definition at line 36 of file json_rpc_impl.h.

Member Function Documentation

◆ GetStub()

Stub & GetStub
inlineprotected

Access the rpc stub.

Returns
Reference to the stub.

Definition at line 43 of file json_rpc_impl.h.