BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Classes | Public Member Functions | Friends | List of all members
fc::generic_api Class Reference

#include <api_connection.hpp>

Public Member Functions

template<typename Api >
 generic_api (const Api &a, const std::shared_ptr< fc::api_connection > &c)
 
 generic_api (const generic_api &cpy)=delete
 
variant call (const string &name, const variants &args)
 
variant call (uint32_t method_id, const variants &args)
 
std::weak_ptr< fc::api_connectionget_connection ()
 
std::vector< std::string > get_method_names () const
 

Friends

struct api_visitor
 

Detailed Description

Definition at line 109 of file api_connection.hpp.

Constructor & Destructor Documentation

◆ generic_api() [1/2]

template<typename Api >
fc::generic_api::generic_api ( const Api &  a,
const std::shared_ptr< fc::api_connection > &  c 
)

Definition at line 415 of file api_connection.hpp.

◆ generic_api() [2/2]

fc::generic_api::generic_api ( const generic_api cpy)
delete

Member Function Documentation

◆ call() [1/2]

variant fc::generic_api::call ( const string &  name,
const variants args 
)
inline

Definition at line 117 of file api_connection.hpp.

◆ call() [2/2]

variant fc::generic_api::call ( uint32_t  method_id,
const variants args 
)
inline

Definition at line 126 of file api_connection.hpp.

◆ get_connection()

std::weak_ptr< fc::api_connection > fc::generic_api::get_connection ( )
inline

Definition at line 134 of file api_connection.hpp.

◆ get_method_names()

std::vector<std::string> fc::generic_api::get_method_names ( ) const
inline

Definition at line 139 of file api_connection.hpp.

Friends And Related Function Documentation

◆ api_visitor

friend struct api_visitor
friend

Definition at line 148 of file api_connection.hpp.


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