cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Data Fields
Option Class Reference

#include <parser.h>

Collaboration diagram for Option:
Collaboration graph
[legend]

Public Types

enum  Opts {
  BOOL, LONG, REAL, OPTION,
  STRING, INVALID
}
 
enum  Quoted { NOTQUOTED, QUOTED }
 

Public Member Functions

 Option (bool val)
 
 Option (long val)
 
 Option (double val)
 
 Option (const string &val, enum Quoted q)
 

Data Fields

enum Option::Opts opttype
 
union {
   bool   l
 
   long   i
 
   double   r
 
}; 
 
string s
 

Detailed Description

Definition at line 545 of file parser.h.

Member Enumeration Documentation

Enumerator
BOOL 
LONG 
REAL 
OPTION 
STRING 
INVALID 

Definition at line 547 of file parser.h.

Enumerator
NOTQUOTED 
QUOTED 

Definition at line 548 of file parser.h.

Constructor & Destructor Documentation

Option::Option ( bool  val)
inline

Definition at line 555 of file parser.h.

References BOOL, l, and opttype.

Option::Option ( long  val)
inline

Definition at line 560 of file parser.h.

References i, LONG, and opttype.

Option::Option ( double  val)
inline

Definition at line 565 of file parser.h.

References opttype, r, and REAL.

Option::Option ( const string &  val,
enum Quoted  q 
)
inline

Definition at line 570 of file parser.h.

References OPTION, opttype, QUOTED, s, and STRING.

Field Documentation

union { ... }
long Option::i

Definition at line 551 of file parser.h.

Referenced by Option().

bool Option::l

Definition at line 550 of file parser.h.

Referenced by Option().

enum Option::Opts Option::opttype

Referenced by Option().

double Option::r

Definition at line 552 of file parser.h.

Referenced by Option().

string Option::s

Definition at line 554 of file parser.h.

Referenced by Option().


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