MP4v2
|
Structure describing a single option. More...
Public Types | |
enum | Type { NO_ARG, REQUIRED_ARG, OPTIONAL_ARG } |
expectation-type indicating number of arguments expected on the command-line following the option-argument itself More... | |
Public Attributes | |
const char * | name |
contains the option name without leading double-dash | |
Type | type |
option expectation-type | |
int * | flag |
If not NULL, then the integer pointed to by it will be set to the value in the val field. More... | |
int | val |
Constant value representing option. More... | |
Structure describing a single option.
An instance of Option is required for each program option and is initialized before use with getOption() or getOptionWord().
int* mp4v2::platform::prog::Option::flag |
If not NULL, then the integer pointed to by it will be set to the value in the val field.
If the flag field is NULL, then the val field will be returned.
int mp4v2::platform::prog::Option::val |
Constant value representing option.
This is usually a single-char ASCII value but in case of long-options without a corresponding single-char value it can be a unique integer (beyond ASCII range) which represents the long-option.