![]() |
advgetopt 2.0.47
Parse complex command line arguments and configuration files in C++.
|
Structure representing an option. More...
#include <options.h>
Public Attributes | |
char const * | f_default = nullptr |
char const * | f_environment_variable_name = nullptr |
flag_t | f_flags = GETOPT_FLAG_NONE |
char const * | f_help = nullptr |
char const *const * | f_multiple_separators = nullptr |
char const * | f_name = nullptr |
short_name_t | f_short_name = NO_SHORT_NAME |
char const * | f_validator = nullptr |
When creating a getopt() object you have to pass an array of options. That array is defined as a set of option structures.
The last option must be an end_options(). It has its f_flags set to GETOPT_FLAG_END and all the other parameters are set to zero (i.e. no name, no short name, etc.)
Note that with the newer version of the library, you are not expected to manually define an array of options. Instead, you want to use the C++ functions such as Name(), ShortName(), Flags(), etc. These functions are capable of verifying that at least some of the values are valid at compile time.
Definition at line 75 of file options.h.
Referenced by advgetopt::getopt::parse_options_info().
Definition at line 74 of file options.h.
Referenced by advgetopt::getopt::parse_options_info().
flag_t advgetopt::option::f_flags = GETOPT_FLAG_NONE |
Definition at line 72 of file options.h.
Referenced by advgetopt::getopt::parse_options_info().
Definition at line 76 of file options.h.
Referenced by advgetopt::getopt::parse_options_info().
Definition at line 78 of file options.h.
Referenced by advgetopt::getopt::parse_options_info().
Definition at line 73 of file options.h.
Referenced by advgetopt::getopt::parse_options_info().
short_name_t advgetopt::option::f_short_name = NO_SHORT_NAME |
Definition at line 71 of file options.h.
Referenced by advgetopt::define_option(), and advgetopt::getopt::parse_options_info().
Definition at line 77 of file options.h.
Referenced by advgetopt::getopt::parse_options_info().
This document is part of the Snap! Websites Project.
Copyright by Made to Order Software Corp.