MACE  1.0.0
 All Classes Namespaces Files Functions Variables Enumerations Defines
Classes | Typedefs | Functions
mace::rpc::json Namespace Reference

All JSON-RPC Related APIs.

Classes

class  client
struct  client_interface
 Interface Delegate that adapts an interface for asynchronous calls over the network. More...
class  connection
struct  add_interface_visitor
class  http_client
class  http_connection
class  http_server
struct  has_named_params
class  tcp_server
class  value
 variant type that may hold a string, int, double, array, bool, nil, or object. More...

Typedefs

typedef boost::error_info
< struct json_rpc_error_,
json::value
error
typedef boost::error_info
< struct json_err_data_,
std::string > 
err_data
typedef boost::error_info
< struct json_err_code_,
int64_t > 
err_code
typedef boost::function
< json::value(connection
&, const json::value &param)> 
rpc_method
typedef boost::variant< null_t,
double, bool, std::string,
boost::recursive_wrapper
< object >
, boost::recursive_wrapper
< array > > 
value_variant

Functions

void from_string (const std::string &j, value &v)
void to_string (const value &v, std::string &j, bool pretty=false)
std::ostream & write (std::ostream &os, const json::value &v, bool pretty=false)
template<typename T >
std::string to_string (const T &v, bool pretty=false)
valueoperator<< (value &jv, const value &v)
const valueoperator>> (const value &jv, value &v)
template<typename T >
valueoperator<< (value &jv, const std::vector< T > &v)
template<typename T >
const valueoperator>> (const value &jv, std::vector< T > &v)