#include "jsonipc.hh"
Public Member Functions | |
JsonAllocator & | allocator () |
CallbackInfo (const JsonValue &args, JsonAllocator *allocator=nullptr) | |
std::string | classname (const std::string &fallback) const |
rapidjson::Document & | document () |
Closure * | find_closure (const char *methodname) |
JsonValue & | get_result () |
bool | have_result () const |
size_t | n_args () const |
const JsonValue & | ntharg (size_t index) const |
void | set_result (JsonValue &result) |
Context for calling C++ functions from Json.
|
explicit |
const JsonValue & ntharg | ( | size_t | index | ) | const |
size_t n_args | ( | ) | const |
Closure * find_closure | ( | const char * | methodname | ) |
std::string classname | ( | const std::string & | fallback | ) | const |
JsonAllocator & allocator | ( | ) |
void set_result | ( | JsonValue & | result | ) |
JsonValue & get_result | ( | ) |
bool have_result | ( | ) | const |
rapidjson::Document & document | ( | ) |