Anklang C++ API 0.0.0
Loading...
Searching...
No Matches
CallbackInfofinal

#include "jsonipc.hh"

Public Member Functions

JsonAllocator &allocator ()
CallbackInfo (const JsonValue &args, JsonAllocator *allocator=nullptr)
std::stringclassname (const std::string &fallback) const
rapidjson::Document &document ()
Closure *find_closure (const char *methodname)
JsonValue &get_result ()
boolhave_result () const
size_tn_args () const
const JsonValue &ntharg (size_t index) const
voidset_result (JsonValue &result)

Detailed Description

Context for calling C++ functions from Json.

Constructor & Destructor Documentation

CallbackInfo()

CallbackInfo ( const JsonValue & args,
JsonAllocator * allocator = nullptr
)
explicit

Member Function Documentation

ntharg()

const JsonValue & ntharg ( size_t index) const

n_args()

size_t n_args ( ) const

find_closure()

Closure * find_closure ( const char * methodname)

classname()

std::string classname ( const std::string & fallback) const

allocator()

JsonAllocator & allocator ( )

set_result()

void set_result ( JsonValue & result)

get_result()

JsonValue & get_result ( )

have_result()

bool have_result ( ) const

document()

rapidjson::Document & document ( )