Bitshares-Core  2.0.181105
BitShares blockchain implementation and command-line interface software
Public Member Functions | Public Attributes | List of all members
graphene::app::application Class Reference

#include <application.hpp>

Public Member Functions

 application ()
 
 ~application ()
 
void set_program_options (boost::program_options::options_description &command_line_options, boost::program_options::options_description &configuration_file_options) const
 
void initialize (const fc::path &data_dir, const boost::program_options::variables_map &options)
 
void initialize_plugins (const boost::program_options::variables_map &options)
 
void startup ()
 
void shutdown ()
 
void startup_plugins ()
 
void shutdown_plugins ()
 
template<typename PluginType >
std::shared_ptr< PluginType > register_plugin ()
 
std::shared_ptr< abstract_pluginget_plugin (const string &name) const
 
template<typename PluginType >
std::shared_ptr< PluginType > get_plugin (const string &name) const
 
net::node_ptr p2p_node ()
 
std::shared_ptr< chain::databasechain_database () const
 
void set_block_production (bool producing_blocks)
 
fc::optional< api_access_infoget_api_access_info (const string &username) const
 
void set_api_access_info (const string &username, api_access_info &&permissions)
 
bool is_finished_syncing () const
 
const application_optionsget_options ()
 

Public Attributes

boost::signals2::signal< void()> syncing_finished
 Emitted when syncing finishes (is_finished_syncing will return true) More...
 

Detailed Description

Definition at line 45 of file application.hpp.

Constructor & Destructor Documentation

◆ application()

graphene::app::application::application ( )

Definition at line 913 of file application.cpp.

◆ ~application()

graphene::app::application::~application ( )

Definition at line 917 of file application.cpp.

Member Function Documentation

◆ chain_database()

std::shared_ptr< chain::database > graphene::app::application::chain_database ( ) const

Definition at line 1061 of file application.cpp.

◆ get_api_access_info()

optional< api_access_info > graphene::app::application::get_api_access_info ( const string &  username) const

Definition at line 1071 of file application.cpp.

◆ get_options()

const application_options & graphene::app::application::get_options ( )

Definition at line 1129 of file application.cpp.

◆ get_plugin() [1/2]

std::shared_ptr< abstract_plugin > graphene::app::application::get_plugin ( const string &  name) const

Definition at line 1051 of file application.cpp.

◆ get_plugin() [2/2]

template<typename PluginType >
std::shared_ptr<PluginType> graphene::app::application::get_plugin ( const string &  name) const
inline

Definition at line 80 of file application.hpp.

◆ initialize()

void graphene::app::application::initialize ( const fc::path &  data_dir,
const boost::program_options::variables_map &  options 
)

Definition at line 974 of file application.cpp.

◆ initialize_plugins()

void graphene::app::application::initialize_plugins ( const boost::program_options::variables_map &  options)

Definition at line 1115 of file application.cpp.

◆ is_finished_syncing()

bool graphene::app::application::is_finished_syncing ( ) const

Definition at line 1081 of file application.cpp.

◆ p2p_node()

net::node_ptr graphene::app::application::p2p_node ( )

Definition at line 1056 of file application.cpp.

◆ register_plugin()

template<typename PluginType >
std::shared_ptr<PluginType> graphene::app::application::register_plugin ( )
inline

Definition at line 61 of file application.hpp.

◆ set_api_access_info()

void graphene::app::application::set_api_access_info ( const string &  username,
api_access_info &&  permissions 
)

Definition at line 1076 of file application.cpp.

◆ set_block_production()

void graphene::app::application::set_block_production ( bool  producing_blocks)

Definition at line 1066 of file application.cpp.

◆ set_program_options()

void graphene::app::application::set_program_options ( boost::program_options::options_description &  command_line_options,
boost::program_options::options_description &  configuration_file_options 
) const

Definition at line 930 of file application.cpp.

◆ shutdown()

void graphene::app::application::shutdown ( )

Definition at line 1104 of file application.cpp.

◆ shutdown_plugins()

void graphene::app::application::shutdown_plugins ( )

Definition at line 1098 of file application.cpp.

◆ startup()

void graphene::app::application::startup ( )

Definition at line 1038 of file application.cpp.

◆ startup_plugins()

void graphene::app::application::startup_plugins ( )

Definition at line 1122 of file application.cpp.

Member Data Documentation

◆ syncing_finished

boost::signals2::signal<void()> graphene::app::application::syncing_finished

Emitted when syncing finishes (is_finished_syncing will return true)

Definition at line 97 of file application.hpp.


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