|
FlatImage
A configurable Linux containerization system
|
Vector-based argument container with pop operations. More...
#include <parser.hpp>
Public Member Functions | |
| VecArgs (char **begin, char **end) | |
| Constructs a VecArgs from an iterator range. | |
| template<ns_string::static_string Format, typename... Ts> | |
| Value< std::string > | pop_front (Ts &&... ts) |
| Pops the front element with formatted error message. | |
| std::vector< std::string > const & | data () |
| Returns a const reference to the underlying data. | |
| size_t | size () |
| Returns the number of arguments. | |
| bool | empty () |
| Checks if the argument vector is empty. | |
| void | clear () |
| Clears all arguments. | |
Vector-based argument container with pop operations.
Wraps a vector of strings to provide convenient argument parsing with formatted error messages.
Definition at line 97 of file parser.hpp.
|
inline |
Constructs a VecArgs from an iterator range.
| begin | Beginning of the argument range |
| end | End of the argument range |
Definition at line 107 of file parser.hpp.
|
inline |
Clears all arguments.
Definition at line 171 of file parser.hpp.
|
inline |
Returns a const reference to the underlying data.
Definition at line 145 of file parser.hpp.
|
inline |
Checks if the argument vector is empty.
Definition at line 163 of file parser.hpp.
|
inline |
Pops the front element with formatted error message.
| Format | Error message format string |
| Ts | Types of format arguments |
| ts | Format arguments |
Definition at line 123 of file parser.hpp.
|
inline |
Returns the number of arguments.
Definition at line 154 of file parser.hpp.