GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
command_line_interface.hpp File Reference

Go to the source code of this file.

Classes

struct  grem::cli::Error
 Base exception type for errors originating from the command line interface. More...
struct  grem::cli::Help
 Exception type thrown by the command line interface containing a help string that was requested by the user. More...
struct  grem::cli::InvalidUsage
 Exception type thrown by the command line interface when an incorrect number of arguments were provided. More...
struct  grem::cli::InvalidArgument
 Exception type thrown by the command line interface when an invalid argument value was provided. More...
struct  grem::cli::UnknownOption
 Exception type thrown by the command line interface when an unknown option was specified. More...
struct  grem::cli::InvalidOptionValue
 Exception type thrown by the command line interface when an invalid option value was provided. More...
class  grem::cli::Proxy< T >
 Proxy type for making command line option fields that reference other values. More...
struct  grem::cli::CommandLineParserOptions
 Configuration options for command line parsing. More...

Namespaces

namespace  grem
namespace  grem::cli

Functions

template<detail::boolean_argument T>
void grem::cli::parseArgumentValue (T &output, CStringView argument)
 Parse a command line argument into a boolean value.
template<detail::integer_argument T>
void grem::cli::parseArgumentValue (T &output, CStringView argument)
 Parse a command line argument into an integer value.
template<detail::character_argument T>
void grem::cli::parseArgumentValue (T &output, CStringView argument)
 Parse a command line argument into a character value.
template<detail::float_argument T>
void grem::cli::parseArgumentValue (T &output, CStringView argument)
 Parse a command line argument into a single-precision floating-point value.
template<detail::double_argument T>
void grem::cli::parseArgumentValue (T &output, CStringView argument)
 Parse a command line argument into a double-precision floating-point value.
template<detail::quantity_argument T>
void grem::cli::parseArgumentValue (T &output, CStringView argument)
 Parse a command line argument into a single-precision floating-point quantity.
template<detail::string_argument T>
void grem::cli::parseArgumentValue (T &output, CStringView argument)
 Parse a command line argument into a string value.
template<typename Rep, typename Period>
void grem::cli::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 > grem::cli::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 > 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.
template<aggregate Arguments>
requires (default_initializable<Arguments>)
ArrayList< CStringView > grem::cli::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 > grem::cli::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 > grem::cli::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 > grem::cli::parseCommandLineOptions (Options &outputOptions, int argc, char *argv[], const CommandLineParserOptions &options={})
 Parse the command line received by main() into options.