#include <option.h>
Public Types | |
enum | Type { NO_ARG , REQUIRED_ARG , OPTIONAL_ARG } |
Public Attributes | |
const char * | name |
contains the option name without leading double-dash | |
Type | type |
option expectation-type | |
int * | flag |
int | val |
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.