Click
Loading...
Searching...
No Matches
Public Attributes | List of all members
Clp_Parser Struct Reference

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
 

Detailed Description

Command line parser.

A Clp_Parser object defines an instance of CLP, including allowed options, value types, and current arguments.

See also
Clp_NewParser, Clp_SetOptions, Clp_SetArguments

Member Data Documentation

◆ option

const Clp_Option* Clp_Parser::option

The last option.

◆ negated

int Clp_Parser::negated

Whether the last option was negated.

◆ have_val

int Clp_Parser::have_val

Whether the last option had a value.

◆ vstr

const char* Clp_Parser::vstr

The string value provided with the last option.

◆ [union]

union { ... } Clp_Parser::val

The parsed value provided with the last option.

◆ user_data

void* Clp_Parser::user_data

Uninterpreted by CLP; users can set arbitrarily.


The documentation for this struct was generated from the following file: