Class CArgumentIterator#
Defined in File cmdlnparser.h
Class Documentation#
-
class CArgumentIterator#
Argument iterator class, allowing iteration of the second until last arguments (the first argument is skipped, since it represents the application name).
Public Functions
-
template<typename TCharType>
CArgumentIterator(size_t nArgs, const TCharType **rgszArgs)# Constructor allowing iteration through the list of arguments. tparam Character type.
- Parameters:
nArgs – [in] The amount of arguments.
rgszArgs – [in] Array of arguments.
-
inline std::optional<std::string> GetNext()#
Get the next argument (if existing).
- Returns:
Returns the next argument (or false when there is no argument).
-
inline size_t GetIndexOfLastArg() const#
Returns the index of the last provided argument.
- Returns:
The index of the last provided argument.
-
template<typename TCharType>