Electroneum
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 }
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)
Definition: command_line.h:224
Here is the call graph for this function:

◆ set_option() [1/2]

static 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:

◆ set_option() [2/2]

template<typename T , bool required, bool dependent, int NUM_DEPS>
static 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:

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