Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | List of all members
GlobalData Class Reference

Detailed Description

Class GlobalData (a singleton) encapsulates global static data as well as command line definition and processing

Definition at line 94 of file Tropdump.cpp.

Inheritance diagram for GlobalData:
Inheritance graph
[legend]

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
 
TropModelpTrop
 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 GlobalDataInstance ()
 
- Protected Member Functions inherited from gnsstk::Singleton< GlobalData >
 Singleton ()
 
virtual ~Singleton ()
 

Constructor & Destructor Documentation

◆ GlobalData()

GlobalData::GlobalData ( )
inlinenoexcept

Default and only constructor, sets defaults.

Definition at line 98 of file Tropdump.cpp.

◆ ~GlobalData()

GlobalData::~GlobalData ( )
inline

destructor, clean up

Definition at line 123 of file Tropdump.cpp.

Member Function Documentation

◆ BuildCommandLine()

string GlobalData::BuildCommandLine ( void  )

Design the command line

Returns
program description strng
Exceptions
Exception

Q: Where is the file name used to read the config file?

Definition at line 374 of file Tropdump.cpp.

◆ ExtraProcessing()

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.

Returns
0 ok, 4 invalid input
Exceptions
Exception

Definition at line 425 of file Tropdump.cpp.

◆ OpenLogFile()

int GlobalData::OpenLogFile ( void  )

Open log file and assign log level

Returns
5 if the output file could not be opened, 0 for success
Exceptions
Exception

Definition at line 556 of file Tropdump.cpp.

◆ ProcessUserInput()

int GlobalData::ProcessUserInput ( int  argc,
char **  argv 
)

Create, parse and process command line options and user input

Parameters
argcargv std command line arguments
Returns
0 ok, or error code
Exceptions
Exception

Definition at line 293 of file Tropdump.cpp.

◆ SetDefaults()

void GlobalData::SetDefaults ( void  )
privatenoexcept

Define defaults for all command line input and global data.

Definition at line 183 of file Tropdump.cpp.

Member Data Documentation

◆ debug

int GlobalData::debug

int handled by CommandLine

Definition at line 167 of file Tropdump.cpp.

◆ delev

double GlobalData::delev

step in elevation (degrees)

Definition at line 161 of file Tropdump.cpp.

◆ doy

int GlobalData::doy

only time input to TropModel is DOY

Definition at line 155 of file Tropdump.cpp.

◆ dummy

string GlobalData::dummy

dummy string used for –file option

Definition at line 148 of file Tropdump.cpp.

◆ elevmax

double GlobalData::elevmax

upper limit on elevation (degrees)

Definition at line 160 of file Tropdump.cpp.

◆ elevmin

double GlobalData::elevmin

lower limit on elevation (degrees)

Definition at line 159 of file Tropdump.cpp.

◆ Humid

double GlobalData::Humid

weather for trop model

Definition at line 154 of file Tropdump.cpp.

◆ inputIsValid

bool GlobalData::inputIsValid

true finds no problem

Definition at line 140 of file Tropdump.cpp.

◆ logfile

string GlobalData::logfile

name of output log file

Definition at line 143 of file Tropdump.cpp.

◆ logpath

string GlobalData::logpath

path of output log file

Definition at line 144 of file Tropdump.cpp.

◆ oflog

ofstream GlobalData::oflog

output log file stream

Definition at line 169 of file Tropdump.cpp.

◆ opts

CommandLine GlobalData::opts

command line options and syntax page

Definition at line 134 of file Tropdump.cpp.

◆ Press

double GlobalData::Press

Definition at line 154 of file Tropdump.cpp.

◆ PrgmName

const string GlobalData::PrgmName = string("Tropdump")
static

program name

Definition at line 135 of file Tropdump.cpp.

◆ pTrop

TropModel* GlobalData::pTrop

tropospheric delay model (cf. *TropModel)

Definition at line 172 of file Tropdump.cpp.

◆ refPos

Position GlobalData::refPos

reference position

Definition at line 171 of file Tropdump.cpp.

◆ refPosstr

string GlobalData::refPosstr

string for cmdline ref pos

Definition at line 151 of file Tropdump.cpp.

◆ Temp

double GlobalData::Temp

Definition at line 154 of file Tropdump.cpp.

◆ Title

string GlobalData::Title

ID line printed to screen/log: name, ver, run.

Definition at line 137 of file Tropdump.cpp.

◆ trophelp

bool GlobalData::trophelp

if true, print syntax and list of trop models

Definition at line 163 of file Tropdump.cpp.

◆ tropName

string GlobalData::tropName

string for cmdline trop model

Definition at line 152 of file Tropdump.cpp.

◆ tropstr

string GlobalData::tropstr

string for cmdline trop model weather (T,P,RH)

Definition at line 153 of file Tropdump.cpp.

◆ verbose

bool GlobalData::verbose

flag handled by CommandLine

Definition at line 166 of file Tropdump.cpp.

◆ Version

const string GlobalData::Version
static

version string

Definition at line 136 of file Tropdump.cpp.


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


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:43