Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
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

◆ Opts

Enumerator
BOOL 
LONG 
REAL 
OPTION 
STRING 
INVALID 

◆ Quoted

Enumerator
NOTQUOTED 
QUOTED 

Constructor & Destructor Documentation

◆ Option() [1/4]

Option::Option ( bool val)
inline

References BOOL, l, and opttype.

◆ Option() [2/4]

Option::Option ( long val)
inline

References i, LONG, and opttype.

◆ Option() [3/4]

Option::Option ( double val)
inline

References opttype, r, and REAL.

◆ Option() [4/4]

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

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

Member Data Documentation

◆ [union]

union { ... } Option

◆ i

long Option::i

Referenced by Option().

◆ l

bool Option::l

Referenced by Option().

◆ opttype

enum Option::Opts Option::opttype

Referenced by Option(), Option(), Option(), and Option().

◆ r

double Option::r

Referenced by Option().

◆ s

string Option::s

Referenced by Option().


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