|
Electroneum
|
Namespaces | |
| anonymous_namespace{command_line.cpp} | |
Classes | |
| struct | arg_descriptor |
| struct | arg_descriptor< std::vector< T >, false > |
| struct | arg_descriptor< T, false > |
| struct | arg_descriptor< T, true > |
Functions | |
| std::string | input_line (const std::string &prompt) |
| bool | is_yes (const std::string &str) |
| template<typename T > | |
| boost::program_options::typed_value< T, char > * | make_semantic (const arg_descriptor< T, true > &) |
| template<typename T > | |
| boost::program_options::typed_value< T, char > * | make_semantic (const arg_descriptor< T, false > &arg) |
| template<typename T > | |
| boost::program_options::typed_value< T, char > * | make_semantic (const arg_descriptor< T, false > &arg, const T &def) |
| template<typename T > | |
| boost::program_options::typed_value< std::vector< T >, char > * | make_semantic (const arg_descriptor< std::vector< T >, false > &) |
| template<typename T , bool required> | |
| void | add_arg (boost::program_options::options_description &description, const arg_descriptor< T, required > &arg, bool unique=true) |
| template<typename T > | |
| void | add_arg (boost::program_options::options_description &description, const arg_descriptor< T, false > &arg, const T &def, bool unique=true) |
| template<> | |
| void | add_arg (boost::program_options::options_description &description, const arg_descriptor< bool, false > &arg, bool unique) |
| template<typename charT > | |
| boost::program_options::basic_parsed_options< charT > | parse_command_line (int argc, const charT *const argv[], const boost::program_options::options_description &desc, bool allow_unregistered=false) |
| template<typename F > | |
| bool | handle_error_helper (const boost::program_options::options_description &desc, F parser) |
| template<typename T , bool required> | |
| bool | has_arg (const boost::program_options::variables_map &vm, const arg_descriptor< T, required > &arg) |
| template<typename T , bool required> | |
| T | get_arg (const boost::program_options::variables_map &vm, const arg_descriptor< T, required > &arg) |
| template<> | |
| bool | has_arg< bool, false > (const boost::program_options::variables_map &vm, const arg_descriptor< bool, false > &arg) |
Variables | |
| const arg_descriptor< bool > | arg_help = {"help", "Produce help message"} |
| const arg_descriptor< bool > | arg_version = {"version", "Output version information"} |
| const arg_descriptor< std::string > | arg_data_dir = {"data-dir", "Specify data directory"} |
| const arg_descriptor< std::string > | arg_testnet_data_dir = {"testnet-data-dir", "Specify testnet data directory"} |
| const arg_descriptor< bool > | arg_test_drop_download = {"test-drop-download", "For net tests: in download, discard ALL blocks instead checking/saving them (very fast)"} |
| const arg_descriptor< uint64_t > | arg_test_drop_download_height = {"test-drop-download-height", "Like test-drop-download but disards only after around certain height", 0} |
| const arg_descriptor< int > | arg_test_dbg_lock_sleep = {"test-dbg-lock-sleep", "Sleep time in ms, defaults to 0 (off), used to debug before/after locking mutex. Values 100 to 1000 are good for tests."} |
| const arg_descriptor< bool, false > | arg_testnet_on |
| const arg_descriptor< bool > | arg_dns_checkpoints |
| const command_line::arg_descriptor< uint64_t > | arg_fast_block_sync |
| const command_line::arg_descriptor< uint64_t > | arg_prep_blocks_threads |
| const command_line::arg_descriptor< uint64_t > | arg_show_time_stats |
| const command_line::arg_descriptor< size_t > | arg_block_sync_size |
| const command_line::arg_descriptor< std::string > | arg_check_updates |
| const arg_descriptor< bool > | arg_disable_fluffy_blocks |
| const arg_descriptor< std::string > | arg_validator_key |
| void command_line::add_arg | ( | boost::program_options::options_description & | description, |
| const arg_descriptor< T, required > & | arg, | ||
| bool | unique = true |
||
| ) |
| void command_line::add_arg | ( | boost::program_options::options_description & | description, |
| const arg_descriptor< T, false > & | arg, | ||
| const T & | def, | ||
| bool | unique = true |
||
| ) |
|
inline |
| T command_line::get_arg | ( | const boost::program_options::variables_map & | vm, |
| const arg_descriptor< T, required > & | arg | ||
| ) |
| bool command_line::handle_error_helper | ( | const boost::program_options::options_description & | desc, |
| F | parser | ||
| ) |
| bool command_line::has_arg | ( | const boost::program_options::variables_map & | vm, |
| const arg_descriptor< T, required > & | arg | ||
| ) |
|
inline |
| std::string command_line::input_line | ( | const std::string & | prompt | ) |
| bool command_line::is_yes | ( | const std::string & | str | ) |
str is is_iequal("y" || "yes" ||tr("yes"))`. | boost::program_options::typed_value<T, char>* command_line::make_semantic | ( | const arg_descriptor< T, true > & | ) |
| boost::program_options::typed_value<T, char>* command_line::make_semantic | ( | const arg_descriptor< T, false > & | arg | ) |
| boost::program_options::typed_value<T, char>* command_line::make_semantic | ( | const arg_descriptor< T, false > & | arg, |
| const T & | def | ||
| ) |
| boost::program_options::typed_value<std::vector<T>, char>* command_line::make_semantic | ( | const arg_descriptor< std::vector< T >, false > & | ) |
| boost::program_options::basic_parsed_options<charT> command_line::parse_command_line | ( | int | argc, |
| const charT *const | argv[], | ||
| const boost::program_options::options_description & | desc, | ||
| bool | allow_unregistered = false |
||
| ) |
| const arg_descriptor< size_t > command_line::arg_block_sync_size |
| const arg_descriptor< std::string > command_line::arg_check_updates |
| const arg_descriptor< std::string > command_line::arg_data_dir = {"data-dir", "Specify data directory"} |
| const arg_descriptor< bool > command_line::arg_disable_fluffy_blocks |
| const arg_descriptor< bool > command_line::arg_dns_checkpoints |
| const arg_descriptor< uint64_t > command_line::arg_fast_block_sync |
| const arg_descriptor< bool > command_line::arg_help = {"help", "Produce help message"} |
| const arg_descriptor< uint64_t > command_line::arg_prep_blocks_threads |
| const arg_descriptor< uint64_t > command_line::arg_show_time_stats |
| const arg_descriptor< int > command_line::arg_test_dbg_lock_sleep = {"test-dbg-lock-sleep", "Sleep time in ms, defaults to 0 (off), used to debug before/after locking mutex. Values 100 to 1000 are good for tests."} |
| const arg_descriptor< bool > command_line::arg_test_drop_download = {"test-drop-download", "For net tests: in download, discard ALL blocks instead checking/saving them (very fast)"} |
| const arg_descriptor< uint64_t > command_line::arg_test_drop_download_height = {"test-drop-download-height", "Like test-drop-download but disards only after around certain height", 0} |
| const arg_descriptor< std::string > command_line::arg_testnet_data_dir = {"testnet-data-dir", "Specify testnet data directory"} |
| const arg_descriptor< bool, false > command_line::arg_testnet_on |
| const arg_descriptor< std::string > command_line::arg_validator_key |
| const arg_descriptor< bool > command_line::arg_version = {"version", "Output version information"} |
1.8.14