#include <api_connection.hpp>
Definition at line 97 of file binary_api_connection.hpp.
◆ generic_api() [1/4]
template<typename Api >
fc::generic_api::generic_api |
( |
const Api & | a, |
|
|
const std::shared_ptr< fc::api_connection > & | c ) |
Definition at line 372 of file api_connection.hpp.
373 :_api_connection(c),_api(
a)
374 {
375 boost::any_cast<const Api&>(
a)->visit(
api_visitor( *
this, c ) );
376 }
friend struct api_visitor
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
◆ generic_api() [2/4]
fc::generic_api::generic_api |
( |
const generic_api & | cpy | ) |
|
|
delete |
◆ generic_api() [3/4]
◆ generic_api() [4/4]
fc::generic_api::generic_api |
( |
const generic_api & | cpy | ) |
|
|
delete |
◆ call() [1/4]
Definition at line 104 of file api_connection.hpp.
105 {
106 auto itr = _by_name.find(
name);
107 FC_ASSERT( itr != _by_name.end(),
"no method with name '${name}'", (
"name",
name)(
"api",_by_name) );
108 return call( itr->second, args );
109 }
variant call(const string &name, const variants &args)
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
◆ call() [2/4]
Definition at line 105 of file binary_api_connection.hpp.
106 {
107 auto itr = _by_name.find(
name);
108 FC_ASSERT( itr != _by_name.end(),
"no method with name '${name}'", (
"name",
name)(
"api",_by_name) );
109 return call( itr->second, args );
110 }
◆ call() [3/4]
◆ call() [4/4]
◆ get_connection() [1/2]
◆ get_connection() [2/2]
◆ get_method_names() [1/2]
std::vector< std::string > fc::generic_api::get_method_names |
( |
| ) |
const |
|
inline |
Definition at line 122 of file api_connection.hpp.
123 {
124 std::vector<std::string> result;
125 result.reserve( _by_name.size() );
126 for( auto& m : _by_name ) result.push_back(m.first);
127 return result;
128 }
◆ get_method_names() [2/2]
std::vector< std::string > fc::generic_api::get_method_names |
( |
| ) |
const |
|
inline |
Definition at line 123 of file binary_api_connection.hpp.
124 {
125 std::vector<std::string> result;
126 result.reserve( _by_name.size() );
127 for( auto& m : _by_name ) result.push_back(m.first);
128 return result;
129 }
◆ api_visitor
The documentation for this class was generated from the following files: