Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Option Class Reference

#include <parser.h>

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)
 

Public Attributes

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

Member Enumeration Documentation

Enumerator
BOOL 
LONG 
REAL 
OPTION 
STRING 
INVALID 
Enumerator
NOTQUOTED 
QUOTED 

Constructor & Destructor Documentation

Option::Option ( bool  val)
inline

References BOOL, l, and opttype.

Option::Option ( long  val)
inline

References i, LONG, and opttype.

Option::Option ( double  val)
inline

References opttype, r, and REAL.

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

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

Member Data Documentation

union { ... }
long Option::i

Referenced by Option().

bool Option::l

Referenced by Option().

enum Option::Opts Option::opttype

Referenced by Option().

double Option::r

Referenced by Option().

string Option::s

Referenced by Option().


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