5#ifndef COMMAND_LINE_OPTIONS_HXX
6#define COMMAND_LINE_OPTIONS_HXX
38 class exception:
public std::exception
42 print (std::ostream&)
const = 0;
87 std::
string argument_;
Definition actionstatemachine/CommandLineOptions.hxx:167
virtual const char * next()
virtual const char * peek()
argv_scanner(int start, int &argc, char **argv, bool erase=false)
argv_scanner(int &argc, char **argv, bool erase=false)
Definition actionstatemachine/CommandLineOptions.hxx:138
virtual const char * what() const
virtual void print(std::ostream &) const
Definition actionstatemachine/CommandLineOptions.hxx:39
virtual void print(std::ostream &) const =0
Definition actionstatemachine/CommandLineOptions.hxx:112
void print(std::ostream &) const override
Definition actionstatemachine/CommandLineOptions.cxx:77
invalid_value(std::string option, std::string value)
Definition actionstatemachine/CommandLineOptions.ixx:73
const char * what() const override
Definition actionstatemachine/CommandLineOptions.cxx:84
const std::string & value() const
Definition actionstatemachine/CommandLineOptions.ixx:86
const std::string & option() const
Definition actionstatemachine/CommandLineOptions.ixx:80
Definition actionstatemachine/CommandLineOptions.hxx:91
void print(std::ostream &) const override
Definition actionstatemachine/CommandLineOptions.cxx:59
const std::string & option() const
Definition actionstatemachine/CommandLineOptions.ixx:65
const char * what() const override
Definition actionstatemachine/CommandLineOptions.cxx:65
missing_value(std::string option)
Definition actionstatemachine/CommandLineOptions.ixx:59
Definition actionstatemachine/CommandLineOptions.hxx:148
virtual const char * peek()=0
virtual const char * next()=0
Definition actionstatemachine/CommandLineOptions.hxx:70
unknown_argument(std::string argument)
Definition actionstatemachine/CommandLineOptions.ixx:45
virtual ~unknown_argument()
void print(std::ostream &) const override
Definition actionstatemachine/CommandLineOptions.cxx:41
const std::string & argument() const
Definition actionstatemachine/CommandLineOptions.ixx:51
const char * what() const override
Definition actionstatemachine/CommandLineOptions.cxx:47
Definition actionstatemachine/CommandLineOptions.hxx:15
value
Definition actionstatemachine/CommandLineOptions.hxx:18
@ stop
Definition actionstatemachine/CommandLineOptions.hxx:20
@ fail
Definition actionstatemachine/CommandLineOptions.hxx:21
@ skip
Definition actionstatemachine/CommandLineOptions.hxx:19
Definition actionstatemachine/CommandLineOptions.hxx:49
unknown_option(std::string option)
Definition actionstatemachine/CommandLineOptions.ixx:31
const std::string & option() const
Definition actionstatemachine/CommandLineOptions.ixx:37
const char * what() const override
Definition actionstatemachine/CommandLineOptions.cxx:29
void print(std::ostream &) const override
Definition actionstatemachine/CommandLineOptions.cxx:23
virtual ~unknown_option()
Definition actionstatemachine/CommandLineOptions.hxx:198
const bool & version() const
std::string file_
Definition actionstatemachine/CommandLineOptions.hxx:265
options(int start, int &argc, char **argv, int &end, bool erase=false, ::cli::unknown_mode option=::cli::unknown_mode::fail, ::cli::unknown_mode argument=::cli::unknown_mode::stop)
const bool & help() const
static void print_usage(::std::ostream &)
bool version_
Definition actionstatemachine/CommandLineOptions.hxx:264
options(int &argc, char **argv, bool erase=false, ::cli::unknown_mode option=::cli::unknown_mode::fail, ::cli::unknown_mode argument=::cli::unknown_mode::stop)
const std::string & file() const
const std::string & directory() const
options(int &argc, char **argv, int &end, bool erase=false, ::cli::unknown_mode option=::cli::unknown_mode::fail, ::cli::unknown_mode argument=::cli::unknown_mode::stop)
std::string directory_
Definition cepgenerator/CommandLineOptions.hxx:263
options(int start, int &argc, char **argv, bool erase=false, ::cli::unknown_mode option=::cli::unknown_mode::fail, ::cli::unknown_mode argument=::cli::unknown_mode::stop)
options(::cli::scanner &, ::cli::unknown_mode option=::cli::unknown_mode::fail, ::cli::unknown_mode argument=::cli::unknown_mode::stop)
bool help_
Definition actionstatemachine/CommandLineOptions.hxx:263
Definition actionstatemachine/CommandLineOptions.cxx:15
std::ostream & operator<<(std::ostream &, const exception &)
Definition actionstatemachine/CommandLineOptions.ixx:22