#include <application.hpp>
Definition at line 98 of file application.hpp.
◆ application() [1/2]
scorum::app::application::application |
( |
| ) |
|
◆ application() [2/2]
scorum::app::application::application |
( |
std::shared_ptr< chain::database > |
db | ) |
|
◆ ~application()
scorum::app::application::~application |
( |
| ) |
|
◆ chain_database()
std::shared_ptr< chain::database > scorum::app::application::chain_database |
( |
| ) |
const |
◆ create_api_by_name()
fc::api_ptr scorum::app::application::create_api_by_name |
( |
const api_context & |
ctx | ) |
|
Instantiate the named API. Currently this simply calls the previously registered factory method.
Definition at line 1390 of file application.cpp.
◆ enable_plugin()
void scorum::app::application::enable_plugin |
( |
const std::string & |
name | ) |
|
◆ get_api_access_info()
optional< api_access_info > scorum::app::application::get_api_access_info |
( |
const std::string & |
username | ) |
const |
◆ get_default_apis()
std::vector< std::string > scorum::app::application::get_default_apis |
( |
| ) |
const |
◆ get_default_plugins()
std::vector< std::string > scorum::app::application::get_default_plugins |
( |
| ) |
const |
◆ get_max_block_age()
void scorum::app::application::get_max_block_age |
( |
int32_t & |
result | ) |
|
◆ get_plugin() [1/2]
std::shared_ptr< abstract_plugin > scorum::app::application::get_plugin |
( |
const std::string & |
name | ) |
const |
◆ get_plugin() [2/2]
template<typename PluginType >
std::shared_ptr<PluginType> scorum::app::application::get_plugin |
( |
const std::string & |
name | ) |
const |
|
inline |
◆ get_write_node_net_api()
◆ initialize()
void scorum::app::application::initialize |
( |
const boost::program_options::variables_map & |
options | ) |
|
◆ initialize_plugins()
void scorum::app::application::initialize_plugins |
( |
const boost::program_options::variables_map & |
options | ) |
|
◆ is_read_only()
bool scorum::app::application::is_read_only |
( |
| ) |
const |
|
inline |
◆ p2p_node()
graphene::net::node_ptr scorum::app::application::p2p_node |
( |
| ) |
|
◆ register_abstract_plugin()
void scorum::app::application::register_abstract_plugin |
( |
std::shared_ptr< abstract_plugin > |
plug | ) |
|
◆ register_api_factory() [1/2]
template<typename Api >
void scorum::app::application::register_api_factory |
( |
const std::string & |
name | ) |
|
|
inline |
Convenience method to build an API factory from a type which only requires a reference to the application.
Definition at line 157 of file application.hpp.
◆ register_api_factory() [2/2]
void scorum::app::application::register_api_factory |
( |
const std::string & |
name, |
|
|
std::function< fc::api_ptr(const api_context &)> |
factory |
|
) |
| |
Register a way to instantiate the named API with the application.
Definition at line 1385 of file application.cpp.
◆ register_plugin()
template<typename PluginType >
std::shared_ptr<PluginType> scorum::app::application::register_plugin |
( |
| ) |
|
|
inline |
◆ set_api_access_info()
void scorum::app::application::set_api_access_info |
( |
const std::string & |
username, |
|
|
api_access_info && |
permissions |
|
) |
| |
◆ set_block_production()
void scorum::app::application::set_block_production |
( |
bool |
producing_blocks | ) |
|
◆ set_program_options()
void scorum::app::application::set_program_options |
( |
boost::program_options::options_description & |
command_line_options, |
|
|
boost::program_options::options_description & |
configuration_file_options |
|
) |
| const |
◆ shutdown()
void scorum::app::application::shutdown |
( |
| ) |
|
◆ shutdown_plugins()
void scorum::app::application::shutdown_plugins |
( |
| ) |
|
◆ startup()
void scorum::app::application::startup |
( |
| ) |
|
◆ startup_plugins()
void scorum::app::application::startup_plugins |
( |
| ) |
|
◆ _client
fc::http::websocket_client scorum::app::application::_client |
◆ _remote_endpoint
fc::optional<std::string> scorum::app::application::_remote_endpoint |
◆ _remote_login
fc::optional<fc::api<login_api> > scorum::app::application::_remote_login |
◆ _remote_net_api
◆ _ws_apic
std::shared_ptr<fc::rpc::websocket_api_connection> scorum::app::application::_ws_apic |
◆ _ws_ptr
fc::http::websocket_connection_ptr scorum::app::application::_ws_ptr |
The documentation for this class was generated from the following files: