Class GlobalData (a singleton) encapsulates global static data as well as command line definition and processing
Definition at line 94 of file Tropdump.cpp.

Public Member Functions | |
| string | BuildCommandLine (void) |
| int | ExtraProcessing (string &errors, string &extras) |
| GlobalData () noexcept | |
| Default and only constructor, sets defaults. More... | |
| int | OpenLogFile (void) |
| int | ProcessUserInput (int argc, char **argv) |
| ~GlobalData () | |
| destructor, clean up More... | |
Public Attributes | |
| int | debug |
| int handled by CommandLine More... | |
| double | delev |
| step in elevation (degrees) More... | |
| int | doy |
| only time input to TropModel is DOY More... | |
| string | dummy |
| dummy string used for –file option More... | |
| double | elevmax |
| upper limit on elevation (degrees) More... | |
| double | elevmin |
| lower limit on elevation (degrees) More... | |
| double | Humid |
| weather for trop model More... | |
| bool | inputIsValid |
| true finds no problem More... | |
| string | logfile |
| name of output log file More... | |
| string | logpath |
| path of output log file More... | |
| ofstream | oflog |
| output log file stream More... | |
| CommandLine | opts |
| command line options and syntax page More... | |
| double | Press |
| TropModel * | pTrop |
| tropospheric delay model (cf. *TropModel) More... | |
| Position | refPos |
| reference position More... | |
| string | refPosstr |
| string for cmdline ref pos More... | |
| double | Temp |
| string | Title |
| ID line printed to screen/log: name, ver, run. More... | |
| bool | trophelp |
| if true, print syntax and list of trop models More... | |
| string | tropName |
| string for cmdline trop model More... | |
| string | tropstr |
| string for cmdline trop model weather (T,P,RH) More... | |
| bool | verbose |
| flag handled by CommandLine More... | |
Static Public Attributes | |
| static const string | PrgmName = string("Tropdump") |
| program name More... | |
| static const string | Version |
| version string More... | |
Private Member Functions | |
| void | SetDefaults (void) noexcept |
| Define defaults for all command line input and global data. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from gnsstk::Singleton< GlobalData > | |
| static GlobalData & | Instance () |
Protected Member Functions inherited from gnsstk::Singleton< GlobalData > | |
| Singleton () | |
| virtual | ~Singleton () |
|
inlinenoexcept |
Default and only constructor, sets defaults.
Definition at line 98 of file Tropdump.cpp.
|
inline |
destructor, clean up
Definition at line 123 of file Tropdump.cpp.
| string GlobalData::BuildCommandLine | ( | void | ) |
Design the command line
| Exception |
Q: Where is the file name used to read the config file?
Definition at line 374 of file Tropdump.cpp.
| int GlobalData::ExtraProcessing | ( | string & | errors, |
| string & | extras | ||
| ) |
Parsing of the command line args beyond that of CommandLine; start and stop strings, trop model, sys codes, ObsIDs.
| Exception |
Definition at line 425 of file Tropdump.cpp.
| int GlobalData::OpenLogFile | ( | void | ) |
Open log file and assign log level
| Exception |
Definition at line 556 of file Tropdump.cpp.
| int GlobalData::ProcessUserInput | ( | int | argc, |
| char ** | argv | ||
| ) |
Create, parse and process command line options and user input
| argc | argv std command line arguments |
| Exception |
Definition at line 293 of file Tropdump.cpp.
|
privatenoexcept |
Define defaults for all command line input and global data.
Definition at line 183 of file Tropdump.cpp.
| int GlobalData::debug |
int handled by CommandLine
Definition at line 167 of file Tropdump.cpp.
| double GlobalData::delev |
step in elevation (degrees)
Definition at line 161 of file Tropdump.cpp.
| int GlobalData::doy |
only time input to TropModel is DOY
Definition at line 155 of file Tropdump.cpp.
| string GlobalData::dummy |
dummy string used for –file option
Definition at line 148 of file Tropdump.cpp.
| double GlobalData::elevmax |
upper limit on elevation (degrees)
Definition at line 160 of file Tropdump.cpp.
| double GlobalData::elevmin |
lower limit on elevation (degrees)
Definition at line 159 of file Tropdump.cpp.
| double GlobalData::Humid |
weather for trop model
Definition at line 154 of file Tropdump.cpp.
| bool GlobalData::inputIsValid |
true finds no problem
Definition at line 140 of file Tropdump.cpp.
| string GlobalData::logfile |
name of output log file
Definition at line 143 of file Tropdump.cpp.
| string GlobalData::logpath |
path of output log file
Definition at line 144 of file Tropdump.cpp.
| ofstream GlobalData::oflog |
output log file stream
Definition at line 169 of file Tropdump.cpp.
| CommandLine GlobalData::opts |
command line options and syntax page
Definition at line 134 of file Tropdump.cpp.
| double GlobalData::Press |
Definition at line 154 of file Tropdump.cpp.
|
static |
program name
Definition at line 135 of file Tropdump.cpp.
| TropModel* GlobalData::pTrop |
tropospheric delay model (cf. *TropModel)
Definition at line 172 of file Tropdump.cpp.
| Position GlobalData::refPos |
reference position
Definition at line 171 of file Tropdump.cpp.
| string GlobalData::refPosstr |
string for cmdline ref pos
Definition at line 151 of file Tropdump.cpp.
| double GlobalData::Temp |
Definition at line 154 of file Tropdump.cpp.
| string GlobalData::Title |
ID line printed to screen/log: name, ver, run.
Definition at line 137 of file Tropdump.cpp.
| bool GlobalData::trophelp |
if true, print syntax and list of trop models
Definition at line 163 of file Tropdump.cpp.
| string GlobalData::tropName |
string for cmdline trop model
Definition at line 152 of file Tropdump.cpp.
| string GlobalData::tropstr |
string for cmdline trop model weather (T,P,RH)
Definition at line 153 of file Tropdump.cpp.
| bool GlobalData::verbose |
flag handled by CommandLine
Definition at line 166 of file Tropdump.cpp.
|
static |
version string
Definition at line 136 of file Tropdump.cpp.