Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes
rve_rpc::Method< Req, Res > Class Template Reference

#include <client.h>

List of all members.

Classes

struct  SyncCallHelper

Public Types

typedef boost::function< void(const
RequestWrapperPtr &, const
boost::function< void(const
ResponseWrapperConstPtr &)>)> 
CallFn
typedef boost::function< void()> PumpFn
typedef boost::shared_ptr< Req
const > 
ReqConstPtr
typedef boost::shared_ptr< Req > ReqPtr
typedef boost::shared_ptr< Res
const > 
ResConstPtr
typedef boost::function< void(const
MethodResponse< Res > &)> 
ResponseCallback
typedef boost::shared_ptr< Res > ResPtr

Public Member Functions

ResConstPtr call (const ReqConstPtr &req)
void callAsync (const ReqConstPtr &req, const ResponseCallback &cb)
void callAsync (const ReqConstPtr &req)
 Method ()
 Method (const std::string &name, const CallFn &c, const PumpFn &pump)

Private Member Functions

void responseCallback (const ResponseWrapperConstPtr &res, const ResponseCallback &cb)

Private Attributes

CallFn call_fn_
std::string name_
PumpFn pump_fn_

Detailed Description

template<typename Req, typename Res>
class rve_rpc::Method< Req, Res >

Definition at line 55 of file client.h.


Member Typedef Documentation

template<typename Req, typename Res>
typedef boost::function<void(const RequestWrapperPtr&, const boost::function<void(const ResponseWrapperConstPtr&)>)> rve_rpc::Method< Req, Res >::CallFn

Definition at line 80 of file client.h.

template<typename Req, typename Res>
typedef boost::function<void()> rve_rpc::Method< Req, Res >::PumpFn

Definition at line 82 of file client.h.

template<typename Req, typename Res>
typedef boost::shared_ptr<Req const> rve_rpc::Method< Req, Res >::ReqConstPtr

Definition at line 76 of file client.h.

template<typename Req, typename Res>
typedef boost::shared_ptr<Req> rve_rpc::Method< Req, Res >::ReqPtr

Definition at line 75 of file client.h.

template<typename Req, typename Res>
typedef boost::shared_ptr<Res const> rve_rpc::Method< Req, Res >::ResConstPtr

Definition at line 78 of file client.h.

template<typename Req, typename Res>
typedef boost::function<void(const MethodResponse<Res>&)> rve_rpc::Method< Req, Res >::ResponseCallback

Definition at line 81 of file client.h.

template<typename Req, typename Res>
typedef boost::shared_ptr<Res> rve_rpc::Method< Req, Res >::ResPtr

Definition at line 77 of file client.h.


Constructor & Destructor Documentation

template<typename Req, typename Res>
rve_rpc::Method< Req, Res >::Method ( ) [inline]

Definition at line 84 of file client.h.

template<typename Req, typename Res>
rve_rpc::Method< Req, Res >::Method ( const std::string &  name,
const CallFn c,
const PumpFn pump 
) [inline]

Definition at line 86 of file client.h.


Member Function Documentation

template<typename Req, typename Res>
ResConstPtr rve_rpc::Method< Req, Res >::call ( const ReqConstPtr req) [inline]

Definition at line 112 of file client.h.

template<typename Req, typename Res>
void rve_rpc::Method< Req, Res >::callAsync ( const ReqConstPtr req,
const ResponseCallback cb 
) [inline]

Definition at line 93 of file client.h.

template<typename Req, typename Res>
void rve_rpc::Method< Req, Res >::callAsync ( const ReqConstPtr req) [inline]

Definition at line 107 of file client.h.

template<typename Req, typename Res>
void rve_rpc::Method< Req, Res >::responseCallback ( const ResponseWrapperConstPtr res,
const ResponseCallback cb 
) [inline, private]

Definition at line 146 of file client.h.


Member Data Documentation

template<typename Req, typename Res>
CallFn rve_rpc::Method< Req, Res >::call_fn_ [private]

Definition at line 161 of file client.h.

template<typename Req, typename Res>
std::string rve_rpc::Method< Req, Res >::name_ [private]

Definition at line 163 of file client.h.

template<typename Req, typename Res>
PumpFn rve_rpc::Method< Req, Res >::pump_fn_ [private]

Definition at line 162 of file client.h.


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


rve_rpc
Author(s): Josh Faust
autogenerated on Wed Dec 11 2013 14:30:53