w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Clp_Parser Struct Reference

Command line parser. More...

#include <clp.h>

Collaboration diagram for Clp_Parser:
[legend]

Public Attributes

const Clp_Optionoption
 
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
 
   char   cs [40]
 
   unsigned char   ucs [40]
 
   int   is [10]
 
   unsigned   us [10]
 
val
 
voiduser_data
 
struct Clp_Internalinternal
 
union {
   int   i
 
   unsigned   u
 
   double   d
 
   const char *   s
 
   void *   pv
 
   char   cs [40]
 
   unsigned char   ucs [40]
 
   int   is [10]
 
   unsigned   us [10]
 
val
 

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

Definition at line 234 of file clp.h.

Member Data Documentation

◆ cs

char Clp_Parser::cs[40]

Definition at line 255 of file clp.h.

◆ d

double Clp_Parser::d

◆ have_val

int Clp_Parser::have_val

Whether the last option had a value.

Definition at line 239 of file clp.h.

Referenced by Clp_NewParser(), Clp_Next(), Clp_Shift(), Clp_vbsprintf(), find_long(), main(), and next_argument().

◆ i

int Clp_Parser::i

Definition at line 244 of file clp.h.

Referenced by clp_parse_char(), main(), parse_bool(), parse_int(), and parse_string_list().

◆ internal

◆ is

int Clp_Parser::is[10]

Definition at line 257 of file clp.h.

◆ l

long Clp_Parser::l

Definition at line 246 of file clp.h.

Referenced by parse_int(), and parse_string_list().

◆ negated

int Clp_Parser::negated

Whether the last option was negated.

Definition at line 237 of file clp.h.

Referenced by Clp_NewParser(), Clp_Next(), find_long(), find_prefix_opt(), find_short(), and main().

◆ option

const Clp_Option * Clp_Parser::option

The last option.

Definition at line 235 of file clp.h.

Referenced by Clp_NewParser(), and Clp_Next().

◆ pv

void* Clp_Parser::pv

Definition at line 250 of file clp.h.

◆ s

const char* Clp_Parser::s

Definition at line 249 of file clp.h.

Referenced by Clp_Next(), and parse_string().

◆ u

unsigned Clp_Parser::u

Definition at line 245 of file clp.h.

Referenced by main(), and parse_int().

◆ ucs

unsigned char Clp_Parser::ucs[40]

Definition at line 256 of file clp.h.

◆ ul

unsigned long Clp_Parser::ul

Definition at line 247 of file clp.h.

Referenced by parse_int().

◆ us

unsigned Clp_Parser::us[10]

Definition at line 258 of file clp.h.

◆ user_data

void * Clp_Parser::user_data

Uninterpreted by CLP; users can set arbitrarily.

Definition at line 262 of file clp.h.

Referenced by Clp_NewParser().

◆  [1/2]

Clp_Parser::val { ... } union

The parsed value provided with the last option.

Referenced by Clp_Next(), clp_parse_char(), main(), parse_bool(), parse_double(), parse_int(), parse_string(), and parse_string_list().

◆  [2/2]

Clp_Parser::val { ... } union

The parsed value provided with the last option.

◆ vstr

const char * Clp_Parser::vstr

The string value provided with the last option.

Definition at line 240 of file clp.h.

Referenced by Clp_NewParser(), Clp_Next(), Clp_Shift(), Clp_vbsprintf(), find_long(), main(), and next_argument().


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