Inshaping: Option Struct Reference

Inshaping

Inshaping  0.1

Data structure of a program option. More...

#include <anyarg.h>

Public Member Functions

 Option ()
 
bool set_value (const char *opt_value)
 
bool set_desc_meta (const char *opt_desc)
 

Public Attributes

char type
 
char letter
 
string name
 
string value_str
 
union {
   bool   value_bool
 
   int   value_int
 
   double   value_double
 
}; 
 
string desc
 
string meta
 

Detailed Description

Data structure of a program option.

Constructor & Destructor Documentation

◆ Option()

Option::Option ( )
inline

Member Function Documentation

◆ set_desc_meta()

bool Option::set_desc_meta ( const char *  opt_desc)

◆ set_value()

bool Option::set_value ( const char *  opt_value)

Member Data Documentation

◆ @1

union { ... }

◆ desc

string Option::desc

◆ letter

char Option::letter

◆ meta

string Option::meta

◆ name

string Option::name

◆ type

char Option::type

◆ value_bool

bool Option::value_bool

◆ value_double

double Option::value_double

◆ value_int

int Option::value_int

◆ value_str

string Option::value_str

The documentation for this struct was generated from the following file:
Generated by   doxygen 1.8.14