Wire Sysio Wire Sysion 1.0.0
|
#include <cli.hpp>
Public Member Functions | |
~cli () | |
virtual variant | send_call (api_id_type api_id, string method_name, variants args=variants()) |
virtual variant | send_callback (uint64_t callback_id, variants args=variants()) |
virtual void | send_notice (uint64_t callback_id, variants args=variants()) |
void | start () |
void | stop () |
void | wait () |
void | format_result (const string &method, std::function< string(variant, const variants &)> formatter) |
virtual void | getline (const fc::string &prompt, fc::string &line) |
void | set_prompt (const string &prompt) |
Public Member Functions inherited from fc::api_connection | |
api_connection () | |
virtual | ~api_connection () |
template<typename T > | |
api< T > | get_remote_api (api_id_type api_id=0) |
variant | receive_call (api_id_type api_id, const string &method_name, const variants &args=variants()) const |
variant | receive_callback (uint64_t callback_id, const variants &args=variants()) const |
void | receive_notice (uint64_t callback_id, const variants &args=variants()) const |
template<typename Interface > | |
api_id_type | register_api (const Interface &a) |
template<typename Signature > | |
uint64_t | register_callback (const std::function< Signature > &cb) |
std::vector< std::string > | get_method_names (api_id_type local_api_id=0) const |
Additional Inherited Members | |
Public Attributes inherited from fc::api_connection | |
fc::signal< void()> | closed |
Provides a simple wrapper for RPC calls to a given interface.
fc::rpc::cli::~cli | ( | ) |
void fc::rpc::cli::format_result | ( | const string & | method, |
std::function< string(variant, const variants &)> | formatter ) |
|
virtual |
Definition at line 191 of file cli.cpp.
|
virtual |
makes calls to the remote server
Implements fc::api_connection.
Definition at line 47 of file cli.cpp.
void fc::rpc::cli::set_prompt | ( | const string & | prompt | ) |
void fc::rpc::cli::start | ( | ) |
Definition at line 62 of file cli.cpp.
void fc::rpc::cli::stop | ( | ) |
void fc::rpc::cli::wait | ( | ) |