|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Classes | |
| struct | Error |
| Base exception type for errors originating from the command line interface. More... | |
| struct | Help |
| Exception type thrown by the command line interface containing a help string that was requested by the user. More... | |
| struct | InvalidUsage |
| Exception type thrown by the command line interface when an incorrect number of arguments were provided. More... | |
| struct | InvalidArgument |
| Exception type thrown by the command line interface when an invalid argument value was provided. More... | |
| struct | UnknownOption |
| Exception type thrown by the command line interface when an unknown option was specified. More... | |
| struct | InvalidOptionValue |
| Exception type thrown by the command line interface when an invalid option value was provided. More... | |
| class | Proxy |
| Proxy type for making command line option fields that reference other values. More... | |
| struct | CommandLineParserOptions |
| Configuration options for command line parsing. More... | |
Functions | |
| template<detail::boolean_argument T> | |
| void | parseArgumentValue (T &output, CStringView argument) |
| Parse a command line argument into a boolean value. | |
| template<detail::integer_argument T> | |
| void | parseArgumentValue (T &output, CStringView argument) |
| Parse a command line argument into an integer value. | |
| template<detail::character_argument T> | |
| void | parseArgumentValue (T &output, CStringView argument) |
| Parse a command line argument into a character value. | |
| template<detail::float_argument T> | |
| void | parseArgumentValue (T &output, CStringView argument) |
| Parse a command line argument into a single-precision floating-point value. | |
| template<detail::double_argument T> | |
| void | parseArgumentValue (T &output, CStringView argument) |
| Parse a command line argument into a double-precision floating-point value. | |
| template<detail::quantity_argument T> | |
| void | parseArgumentValue (T &output, CStringView argument) |
| Parse a command line argument into a single-precision floating-point quantity. | |
| template<detail::string_argument T> | |
| void | parseArgumentValue (T &output, CStringView argument) |
| Parse a command line argument into a string value. | |
| template<typename Rep, typename Period> | |
| void | parseArgumentValue (DurationBase< Rep, Period > &output, CStringView argument) |
| Parse a command line argument into a duration value. | |
| template<aggregate Arguments, aggregate Options> requires (default_initializable<Arguments> && default_initializable<Options>) | |
| ArrayList< CStringView > | parseCommandLine (Arguments &outputArguments, Options &outputOptions, Span< const CStringView > command, const CommandLineParserOptions &options={}) |
| Parse a command line into arguments and options. | |
| template<aggregate Arguments, aggregate Options> requires (default_initializable<Arguments> && default_initializable<Options>) | |
| ArrayList< CStringView > | parseCommandLine (Arguments &outputArguments, Options &outputOptions, int argc, char *argv[], const CommandLineParserOptions &options={}) |
| Parse the command line received by main() into arguments and options. | |
| template<aggregate Arguments> requires (default_initializable<Arguments>) | |
| ArrayList< CStringView > | parseCommandLineArguments (Arguments &outputArguments, Span< const CStringView > command, const CommandLineParserOptions &options={}) |
| Parse a command line into arguments. | |
| template<aggregate Arguments> requires (default_initializable<Arguments>) | |
| ArrayList< CStringView > | parseCommandLineArguments (Arguments &outputArguments, int argc, char *argv[], const CommandLineParserOptions &options={}) |
| Parse the command line received by main() into arguments. | |
| template<aggregate Options> requires (default_initializable<Options>) | |
| ArrayList< CStringView > | parseCommandLineOptions (Options &outputOptions, Span< const CStringView > command, const CommandLineParserOptions &options={}) |
| Parse a command line into options. | |
| template<aggregate Options> requires (default_initializable<Options>) | |
| ArrayList< CStringView > | parseCommandLineOptions (Options &outputOptions, int argc, char *argv[], const CommandLineParserOptions &options={}) |
| Parse the command line received by main() into options. | |
|
inline |
Parse a command line argument into a boolean value.
| output | value to parse the argument into. |
| argument | argument to parse. |
| std::invalid_argument | on failure to parse a valid value from the argument. |
| any | exception thrown by the assignment operator of the output type. |
|
inline |
Parse a command line argument into an integer value.
| output | value to parse the argument into. |
| argument | argument to parse. |
| std::invalid_argument | on failure to parse a valid value from the argument. |
| any | exception thrown by the assignment operator of the output type. |
|
inline |
Parse a command line argument into a character value.
| output | value to parse the argument into. |
| argument | argument to parse. |
| std::invalid_argument | on failure to parse a valid value from the argument. |
| any | exception thrown by the assignment operator of the output type. |
|
inline |
Parse a command line argument into a single-precision floating-point value.
| output | value to parse the argument into. |
| argument | argument to parse. |
| std::invalid_argument | on failure to parse a valid value from the argument. |
| any | exception thrown by the assignment operator of the output type. |
|
inline |
Parse a command line argument into a double-precision floating-point value.
| output | value to parse the argument into. |
| argument | argument to parse. |
| std::invalid_argument | on failure to parse a valid value from the argument. |
| any | exception thrown by the assignment operator of the output type. |
|
inline |
Parse a command line argument into a single-precision floating-point quantity.
| output | value to parse the argument into. |
| argument | argument to parse. |
| std::invalid_argument | on failure to parse a valid value from the argument. |
| any | exception thrown by the assignment operator of the output type. |
|
inline |
Parse a command line argument into a string value.
| output | value to parse the argument into. |
| argument | argument to parse. |
| any | exception thrown by the assignment operator of the output type. |
|
inline |
Parse a command line argument into a duration value.
| output | value to parse the argument into. |
| argument | argument to parse. |
| std::invalid_argument | on failure to parse a valid value from the argument. |
| ArrayList< CStringView > grem::cli::parseCommandLine | ( | Arguments & | outputArguments, |
| Options & | outputOptions, | ||
| Span< const CStringView > | command, | ||
| const CommandLineParserOptions & | options = {} ) |
Parse a command line into arguments and options.
| outputArguments | user-defined aggregate of fields to parse as arguments from the command line. |
| outputOptions | user-defined aggregate of fields to parse as options from the command line. |
| command | view over the given command line arguments. |
| options | parser options, see CommandLineParserOptions. |
| cli::Error | on failure to parse the given arguments and/or options. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the assignment operators of the given argument or option fields. |
| ArrayList< CStringView > grem::cli::parseCommandLine | ( | Arguments & | outputArguments, |
| Options & | outputOptions, | ||
| int | argc, | ||
| char * | argv[], | ||
| const CommandLineParserOptions & | options = {} ) |
Parse the command line received by main() into arguments and options.
| outputArguments | user-defined aggregate of fields to parse as arguments from the command line. |
| outputOptions | user-defined aggregate of fields to parse as options from the command line. |
| argc | number of arguments in the given command line. |
| argv | pointer to a null-terminated array of pointers to null-terminated strings holding the given command line arguments. |
| options | parser options, see CommandLineParserOptions. |
| cli::Error | on failure to parse the given arguments and/or options. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the assignment operators of the given argument or option fields. |
| ArrayList< CStringView > grem::cli::parseCommandLineArguments | ( | Arguments & | outputArguments, |
| Span< const CStringView > | command, | ||
| const CommandLineParserOptions & | options = {} ) |
Parse a command line into arguments.
| outputArguments | user-defined aggregate of fields to parse as arguments from the command line. |
| command | view over the given command line arguments. |
| options | parser options, see CommandLineParserOptions. |
| cli::Error | on failure to parse the given arguments. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the assignment operators of the given argument fields. |
| ArrayList< CStringView > grem::cli::parseCommandLineArguments | ( | Arguments & | outputArguments, |
| int | argc, | ||
| char * | argv[], | ||
| const CommandLineParserOptions & | options = {} ) |
Parse the command line received by main() into arguments.
| outputArguments | user-defined aggregate of fields to parse as arguments from the command line. |
| argc | number of arguments in the given command line. |
| argv | pointer to a null-terminated array of pointers to null-terminated strings holding the given command line arguments. |
| options | parser options, see CommandLineParserOptions. |
| cli::Error | on failure to parse the given arguments. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the assignment operators of the given argument fields. |
| ArrayList< CStringView > grem::cli::parseCommandLineOptions | ( | Options & | outputOptions, |
| Span< const CStringView > | command, | ||
| const CommandLineParserOptions & | options = {} ) |
Parse a command line into options.
| outputOptions | user-defined aggregate of fields to parse as options from the command line. |
| command | view over the given command line arguments. |
| options | parser options, see CommandLineParserOptions. |
| cli::Error | on failure to parse the given options. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the assignment operators of the given option fields. |
| ArrayList< CStringView > grem::cli::parseCommandLineOptions | ( | Options & | outputOptions, |
| int | argc, | ||
| char * | argv[], | ||
| const CommandLineParserOptions & | options = {} ) |
Parse the command line received by main() into options.
| outputOptions | user-defined aggregate of fields to parse as options from the command line. |
| argc | number of arguments in the given command line. |
| argv | pointer to a null-terminated array of pointers to null-terminated strings holding the given command line arguments. |
| options | parser options, see CommandLineParserOptions. |
| cli::Error | on failure to parse the given options. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the assignment operators of the given option fields. |