Electroneum
Loading...
Searching...
No Matches
tools::options Class Reference

#include <tools.h>

Static Public Member Functions

static void set_option (boost::program_options::variables_map &vm, const std::string &key, const boost::program_options::variable_value &pv)
static void build_options (boost::program_options::variables_map &vm, const boost::program_options::options_description &desc_params)
template<typename T, bool required, bool dependent, int NUM_DEPS>
static void set_option (boost::program_options::variables_map &vm, const command_line::arg_descriptor< T, required, dependent, NUM_DEPS > &arg, const boost::program_options::variable_value &pv)

Detailed Description

Definition at line 48 of file tools.h.

Member Function Documentation

◆ build_options()

void tools::options::build_options ( boost::program_options::variables_map & vm,
const boost::program_options::options_description & desc_params )
static

Definition at line 48 of file tools.cpp.

49{
50 const char *argv[2] = {nullptr};
51 po::store(po::parse_command_line(1, argv, desc_params), vm);
52 po::notify(vm);
53}
Here is the caller graph for this function:

◆ set_option() [1/2]

template<typename T, bool required, bool dependent, int NUM_DEPS>
void tools::options::set_option ( boost::program_options::variables_map & vm,
const command_line::arg_descriptor< T, required, dependent, NUM_DEPS > & arg,
const boost::program_options::variable_value & pv )
inlinestatic

Definition at line 54 of file tools.h.

55 {
56 set_option(vm, arg.name, pv);
57 }
static void set_option(boost::program_options::variables_map &vm, const std::string &key, const boost::program_options::variable_value &pv)
Here is the call graph for this function:

◆ set_option() [2/2]

void tools::options::set_option ( boost::program_options::variables_map & vm,
const std::string & key,
const boost::program_options::variable_value & pv )
static
Here is the caller graph for this function:

The documentation for this class was generated from the following files:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/tests/trezor/tools.h
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/tests/trezor/tools.cpp