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 539 of file parser.h.

Member Enumeration Documentation

Enumerator
BOOL 
LONG 
REAL 
OPTION 
STRING 
INVALID 

Definition at line 541 of file parser.h.

Enumerator
NOTQUOTED 
QUOTED 

Definition at line 542 of file parser.h.

Constructor & Destructor Documentation

Option::Option ( bool  val)
inline

Definition at line 549 of file parser.h.

References BOOL, l, and opttype.

Option::Option ( long  val)
inline

Definition at line 554 of file parser.h.

References i, LONG, and opttype.

Option::Option ( double  val)
inline

Definition at line 559 of file parser.h.

References opttype, r, and REAL.

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

Definition at line 564 of file parser.h.

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

Field Documentation

union { ... }
long Option::i

Definition at line 545 of file parser.h.

Referenced by Option().

bool Option::l

Definition at line 544 of file parser.h.

Referenced by Option().

enum Option::Opts Option::opttype

Referenced by Option().

double Option::r

Definition at line 546 of file parser.h.

Referenced by Option().

string Option::s

Definition at line 548 of file parser.h.

Referenced by Option().


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