BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
28 #include <boost/program_options.hpp>
60 virtual void plugin_initialize(
const boost::program_options::variables_map& options ) = 0;
89 boost::program_options::options_description& command_line_options,
90 boost::program_options::options_description& config_file_options
107 void plugin_initialize(
const boost::program_options::variables_map& options )
override;
111 boost::program_options::options_description& command_line_options,
112 boost::program_options::options_description& config_file_options
136 #define DEFAULT_VALUE_VECTOR(value) default_value({fc::json::to_string(value)}, fc::json::to_string(value))
137 #define LOAD_VALUE_SET(options, name, container, type) \
139 if( options.count(name) > 0 ) { \
140 const std::vector<std::string>& ops = options[name].as<std::vector<std::string>>(); \
141 std::transform(ops.begin(), ops.end(), std::inserter(container, container.end()), \
142 &graphene::app::impl::dejsonify<type>); \
virtual void plugin_initialize(const boost::program_options::variables_map &options)=0
Perform early startup routines and register plugin indexes, callbacks, etc.
tracks the blockchain state in an extensible manner
chain::database & database()
T dejsonify(const string &s)
static variant from_string(const string &utf8_str, parse_type ptype=legacy_parser, uint32_t max_depth=DEFAULT_MAX_RECURSION_DEPTH)
std::shared_ptr< node > node_ptr
std::shared_ptr< chain::database > chain_database() const
std::string plugin_description() const override
Get the description of the plugin.
virtual void plugin_startup()=0
Begin normal runtime operations.
virtual std::string plugin_name() const =0
Get the name of the plugin.
T as(uint32_t max_depth) const
void plugin_shutdown() override
Cleanly shut down the plugin.
void plugin_initialize(const boost::program_options::variables_map &options) override
Perform early startup routines and register plugin indexes, callbacks, etc.
abstract_plugin(application &a)
void plugin_startup() override
Begin normal runtime operations.
std::string plugin_name() const override
Get the name of the plugin.
virtual void plugin_set_program_options(boost::program_options::options_description &command_line_options, boost::program_options::options_description &config_file_options)=0
Fill in command line parameters used by the plugin.
#define GRAPHENE_MAX_NESTED_OBJECTS
T dejsonify(const string &s, uint32_t max_depth)
net::node_ptr p2p_node() const
application & app() const
Get a reference of the application bound to the plugin.
virtual void plugin_shutdown()=0
Cleanly shut down the plugin.
void plugin_set_program_options(boost::program_options::options_description &command_line_options, boost::program_options::options_description &config_file_options) override
Fill in command line parameters used by the plugin.
virtual std::string plugin_description() const =0
Get the description of the plugin.
virtual ~abstract_plugin()=default