Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Jsonipc::CallbackInfo Struct Referencefinal

Context for calling C++ functions from Json. More...

#include "jsonipc.hh"

Public Member Functions

 CallbackInfo (const JsonValue &args, JsonAllocator *allocator=nullptr)
 
const JsonValue & ntharg (size_t index) const
 
size_t n_args () const
 
Closurefind_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 ()
 

Detailed Description

Context for calling C++ functions from Json.

Definition at line 450 of file jsonipc.hh.

Constructor & Destructor Documentation

◆ CallbackInfo()

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

Definition at line 451 of file jsonipc.hh.

Member Function Documentation

◆ allocator()

JsonAllocator & Jsonipc::CallbackInfo::allocator ( )

Definition at line 458 of file jsonipc.hh.

◆ classname()

std::string Jsonipc::CallbackInfo::classname ( const std::string fallback) const

Definition at line 780 of file jsonipc.hh.

◆ document()

rapidjson::Document & Jsonipc::CallbackInfo::document ( )

Definition at line 462 of file jsonipc.hh.

◆ find_closure()

Closure * Jsonipc::CallbackInfo::find_closure ( const char methodname)

Definition at line 772 of file jsonipc.hh.

◆ get_result()

JsonValue & Jsonipc::CallbackInfo::get_result ( )

Definition at line 460 of file jsonipc.hh.

◆ have_result()

bool Jsonipc::CallbackInfo::have_result ( ) const

Definition at line 461 of file jsonipc.hh.

◆ n_args()

size_t Jsonipc::CallbackInfo::n_args ( ) const

Definition at line 455 of file jsonipc.hh.

◆ ntharg()

const JsonValue & Jsonipc::CallbackInfo::ntharg ( size_t  index) const

Definition at line 454 of file jsonipc.hh.

◆ set_result()

void Jsonipc::CallbackInfo::set_result ( JsonValue &  result)

Definition at line 459 of file jsonipc.hh.


The documentation for this struct was generated from the following file: