|
Click
|
Command line parser. More...
#include <clp.h>
Public Attributes | ||
| const Clp_Option * | option | |
| int | negated | |
| int | have_val | |
| const char * | vstr | |
| union { | ||
| int i | ||
| unsigned u | ||
| long l | ||
| unsigned long ul | ||
| double d | ||
| const char * s | ||
| void * pv | ||
| int64_t i64 | ||
| uint64_t u64 | ||
| char cs [Clp_ValSize] | ||
| unsigned char ucs [Clp_ValSize] | ||
| int is [Clp_ValIntSize] | ||
| unsigned us [Clp_ValIntSize] | ||
| char ** ps | ||
| } | val | |
| void * | user_data | |
| struct Clp_Internal * | internal | |
Command line parser.
A Clp_Parser object defines an instance of CLP, including allowed options, value types, and current arguments.
| const Clp_Option* Clp_Parser::option |
The last option.
| int Clp_Parser::negated |
Whether the last option was negated.
| int Clp_Parser::have_val |
Whether the last option had a value.
| const char* Clp_Parser::vstr |
The string value provided with the last option.
| union { ... } Clp_Parser::val |
The parsed value provided with the last option.
| void* Clp_Parser::user_data |
Uninterpreted by CLP; users can set arbitrarily.