Options Class Reference

#include <RobotAPI/applications/AronCodeGenerator/cxxopts.hpp>

Public Member Functions

void add_option (const std::string &group, const std::string &s, const std::string &l, std::string desc, std::shared_ptr< const Value > value, std::string arg_help)
 
OptionAdder add_options (std::string group="")
 
Optionsallow_unrecognised_options ()
 
Optionscustom_help (std::string help_text)
 
const HelpGroupDetailsgroup_help (const std::string &group) const
 
const std::vector< std::string > groups () const
 
std::string help (const std::vector< std::string > &groups={}) const
 
 Options (std::string program, std::string help_string="")
 
ParseResult parse (int &argc, char **&argv)
 
template<typename Iterator >
void parse_positional (Iterator begin, Iterator end)
 
void parse_positional (std::initializer_list< std::string > options)
 
void parse_positional (std::string option)
 
void parse_positional (std::vector< std::string > options)
 
Optionspositional_help (std::string help_text)
 
Optionsshow_positional_help ()
 

Detailed Description

Definition at line 1212 of file cxxopts.hpp.

Constructor & Destructor Documentation

◆ Options()

Options ( std::string  program,
std::string  help_string = "" 
)
inline

Definition at line 1218 of file cxxopts.hpp.

Member Function Documentation

◆ add_option()

void add_option ( const std::string &  group,
const std::string &  s,
const std::string &  l,
std::string  desc,
std::shared_ptr< const Value value,
std::string  arg_help 
)
inline

Definition at line 1881 of file cxxopts.hpp.

+ Here is the call graph for this function:

◆ add_options()

OptionAdder add_options ( std::string  group = "")
inline

Definition at line 1505 of file cxxopts.hpp.

+ Here is the caller graph for this function:

◆ allow_unrecognised_options()

Options& allow_unrecognised_options ( )
inline

Definition at line 1252 of file cxxopts.hpp.

◆ custom_help()

Options& custom_help ( std::string  help_text)
inline

Definition at line 1238 of file cxxopts.hpp.

◆ group_help()

const HelpGroupDetails & group_help ( const std::string &  group) const
inline

Definition at line 2090 of file cxxopts.hpp.

◆ groups()

const std::vector< std::string > groups ( ) const
inline

Definition at line 2071 of file cxxopts.hpp.

+ Here is the call graph for this function:

◆ help()

std::string help ( const std::vector< std::string > &  groups = {}) const
inline

Definition at line 2045 of file cxxopts.hpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parse()

ParseResult parse ( int &  argc,
char **&  argv 
)
inline

Definition at line 1704 of file cxxopts.hpp.

+ Here is the caller graph for this function:

◆ parse_positional() [1/4]

void parse_positional ( Iterator  begin,
Iterator  end 
)
inline

Definition at line 1287 of file cxxopts.hpp.

+ Here is the call graph for this function:

◆ parse_positional() [2/4]

void parse_positional ( std::initializer_list< std::string >  options)
inline

Definition at line 1697 of file cxxopts.hpp.

+ Here is the call graph for this function:

◆ parse_positional() [3/4]

void parse_positional ( std::string  option)
inline

Definition at line 1680 of file cxxopts.hpp.

+ Here is the caller graph for this function:

◆ parse_positional() [4/4]

void parse_positional ( std::vector< std::string >  options)
inline

Definition at line 1687 of file cxxopts.hpp.

◆ positional_help()

Options& positional_help ( std::string  help_text)
inline

Definition at line 1231 of file cxxopts.hpp.

◆ show_positional_help()

Options& show_positional_help ( )
inline

Definition at line 1245 of file cxxopts.hpp.


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