|
args-parser 6.3.3
|
Namespaces | |
| namespace | details |
Classes | |
| class | AllOfGroup |
| Group of args where all arguments should be defined. More... | |
| class | Arg |
| Argument with one value that can be present only once in the command line. More... | |
| class | ArgIface |
| Interface for arguments. More... | |
| class | AtLeastOneGroup |
| Group of args where at least one argument should be defined. More... | |
| class | BaseException |
| Base exception of the library. More... | |
| class | CmdLine |
| CmdLine is class that holds all rguments and parse command line arguments in the correspondence with holded arguments. More... | |
| class | Command |
| Command in the command line interface. More... | |
| class | Context |
| Context is a list of words in the command line that user presented with interface for interacting with them. More... | |
| class | GroupIface |
| Interface for the groups. More... | |
| class | Help |
| Help argument. More... | |
| class | HelpHasBeenPrintedException |
| This exception notifies about that help has been printed. More... | |
| class | HelpPrinter |
| HelpPrinter is a class that prints help. More... | |
| class | HelpPrinterIface |
| Interface for HelpPrinter. More... | |
| class | MultiArg |
| MultiArg is a class that presents argument in the command line taht can be presented more than once or can have more than one value. More... | |
| class | OnlyOneGroup |
| Group of args where only one argument can be defined. More... | |
Typedefs | |
| template<typename PARENT , typename SELF , typename ARGPTR > | |
| using | CmdLineAPI = details::API< PARENT, SELF, ARGPTR, true > |
| using | ArgPtrToAPI = std::unique_ptr< ArgIface, details::Deleter< ArgIface > > |
| typedef StringList | ContextInternal |
| What Context actually is. | |
| using | String = std::string |
| String type. | |
| using | Char = String::value_type |
| Char type. | |
| using | OutStreamType = std::ostream |
| Out stream type. | |
| using | StringList = std::vector< String > |
| List of strings. | |
Enumerations | |
| enum class | ValueOptions { NoValue = 0 , OneValue = 1 , ManyValues = 2 } |
| Options for value property. More... | |
| enum class | ArgType { Command , Arg , MultiArg , OnlyOneGroup , AllOfGroup , AtLeastOneGroup } |
| Type of the argument. More... | |
Functions | |
| template<typename Container , typename Cmd , typename Ctx > | |
| bool | eatValues (Ctx &context, Container &container, const String &errorDescription, Cmd *cmdLine) |
| Eat values in context. | |
| template<typename Cmd , typename Ctx > | |
| String | eatOneValue (Ctx &context, const String &errorDescription, Cmd *cmdLine) |
| Eat one value. | |
| using Args::ArgPtrToAPI = typedef std::unique_ptr< ArgIface, details::Deleter< ArgIface > > |
Definition at line 114 of file cmd_line.hpp.
| using Args::Char = typedef String::value_type |
| using Args::CmdLineAPI = typedef details::API< PARENT, SELF, ARGPTR, true > |
Definition at line 112 of file cmd_line.hpp.
| typedef StringList Args::ContextInternal |
What Context actually is.
Definition at line 49 of file context.hpp.
| using Args::OutStreamType = typedef std::ostream |
| using Args::String = typedef std::string |
| using Args::StringList = typedef std::vector< String > |
|
strong |
|
strong |
| String Args::eatOneValue | ( | Ctx & | context, |
| const String & | errorDescription, | ||
| Cmd * | cmdLine | ||
| ) |
Eat one value.
Definition at line 93 of file value_utils.hpp.
| bool Args::eatValues | ( | Ctx & | context, |
| Container & | container, | ||
| const String & | errorDescription, | ||
| Cmd * | cmdLine | ||
| ) |
Eat values in context.
Definition at line 51 of file value_utils.hpp.