[Cppcms-users] Feature Request: Feature added to cppcms::rpc::json_method
Brought to you by:
artyom-beilis
|
From: Daniel V. <chi...@gm...> - 2011-11-25 04:16:04
|
Hello Ayrtom.
I added (see attachment) a feature to cppcms::rpc::json_method and it's
binders.
The feature allow to bind parameters of type:
const cppcms::json::value const &
cppcms::json::object const &
cppcms::json::array const &
std::string const &
The forwarding of these types are passed by reference (zero copy
overhead).
For Example we can add a json rpc method of type:
void my_rpc::my_method(json::array const& a, json::object& o,
json::value& v);
...
bind("my_method",
json_method(&my_rpc::my_method,this),
json_rpc_server::method_role);
...
In theory the changes no breaks backward compatibility and ABI.
In practice my whole project compile with it without change.
Please review the code if you wish.
Thank you.
|