#include <client.h>
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_ |
typedef boost::function<void(const RequestWrapperPtr&, const boost::function<void(const ResponseWrapperConstPtr&)>)> rve_rpc::Method< Req, Res >::CallFn |
typedef boost::function<void()> rve_rpc::Method< Req, Res >::PumpFn |
typedef boost::shared_ptr<Req const> rve_rpc::Method< Req, Res >::ReqConstPtr |
typedef boost::shared_ptr<Req> rve_rpc::Method< Req, Res >::ReqPtr |
typedef boost::shared_ptr<Res const> rve_rpc::Method< Req, Res >::ResConstPtr |
typedef boost::function<void(const MethodResponse<Res>&)> rve_rpc::Method< Req, Res >::ResponseCallback |
typedef boost::shared_ptr<Res> rve_rpc::Method< Req, Res >::ResPtr |
rve_rpc::Method< Req, Res >::Method | ( | ) | [inline] |
rve_rpc::Method< Req, Res >::Method | ( | const std::string & | name, |
const CallFn & | c, | ||
const PumpFn & | pump | ||
) | [inline] |
ResConstPtr rve_rpc::Method< Req, Res >::call | ( | const ReqConstPtr & | req | ) | [inline] |
void rve_rpc::Method< Req, Res >::callAsync | ( | const ReqConstPtr & | req, |
const ResponseCallback & | cb | ||
) | [inline] |
void rve_rpc::Method< Req, Res >::callAsync | ( | const ReqConstPtr & | req | ) | [inline] |
void rve_rpc::Method< Req, Res >::responseCallback | ( | const ResponseWrapperConstPtr & | res, |
const ResponseCallback & | cb | ||
) | [inline, private] |
CallFn rve_rpc::Method< Req, Res >::call_fn_ [private] |
std::string rve_rpc::Method< Req, Res >::name_ [private] |
PumpFn rve_rpc::Method< Req, Res >::pump_fn_ [private] |