ITS.ITU.PSeries.P2108 1.0
Part of the NTIA/ITS Propagation Library
|
Interface header for this driver executable. More...
Go to the source code of this file.
Functions | |
void | Help (std::ostream &os=std::cout) |
Print help instructions to the terminal. | |
DrvrReturnCode | ParseArguments (int argc, char **argv, DrvrParams ¶ms) |
Parse the command line arguments. | |
DrvrReturnCode | ValidateInputs (const DrvrParams ¶ms) |
Validate that required inputs are present for the mode specified by the user. | |
ReturnCode | CallAeronauticalStatisticalModel (ASMParams &asm_params, std::vector< double > &L_ces__db) |
Top-level control function for Aeronautical Statistical Model operation. | |
DrvrReturnCode | ParseASMInputFile (const std::string &in_file, ASMParams &asm_params) |
Parse Aeronautical Statistical Model input parameter file. | |
DrvrReturnCode | ParseASMInputStream (std::istream &stream, ASMParams &asm_params) |
Parse input stream (file or string stream) to ASM parameter struct. | |
void | WriteASMInputs (std::ofstream &fp, const ASMParams ¶ms) |
Write Aeronautical Statistical Model inputs to the report file. | |
ReturnCode | CallHeightGainTerminalCorrectionModel (HGTCMParams &hgtcm_params, std::vector< double > &A_h__db) |
Top-level control function for Height Gain Terminal Correction Model. | |
DrvrReturnCode | ParseHGTCMInputFile (const std::string &in_file, HGTCMParams &hgtcm_params) |
Parse Height Gain Terminal Correction Model input parameter file. | |
DrvrReturnCode | ParseHGTCMInputStream (std::istream &stream, HGTCMParams &hgtcm_params) |
Parse input stream (file or string stream) to HGTCM parameter struct. | |
void | WriteHGTCMInputs (std::ofstream &fp, const HGTCMParams ¶ms) |
Write Height Gain Terminal Correction Model inputs to the report file. | |
ReturnCode | CallTerrestrialStatisticalModel (TSMParams &tsm_params, std::vector< double > &L_ctt__db) |
Top-level control function for Terrestrial Statistical Model operation. | |
DrvrReturnCode | ParseTSMInputFile (const std::string &in_file, TSMParams &tsm_params) |
Parse Terrestrial Statistical Model input parameter file. | |
DrvrReturnCode | ParseTSMInputStream (std::istream &stream, TSMParams &tsm_params) |
Parse input stream (file or string stream) to TSM parameter struct. | |
void | WriteTSMInputs (std::ofstream &fp, const TSMParams ¶ms) |
Write Terrestrial Statistical Model inputs to the report file. | |
void | PrintClutterTypeLabel (std::ofstream &fp, const ClutterType clutter_type) |
Print text message corresponding to clutter type enum value. | |
std::string | GetDatetimeString () |
Get a string containing the current date and time information. | |
DrvrReturnCode | ParseBoolean (const std::string &str, bool &value) |
Parse a boolean value read from the input parameter file. | |
DrvrReturnCode | ParseDouble (const std::string &str, double &value) |
Parse a double value read from the input parameter file. | |
DrvrReturnCode | ParseInteger (const std::string &str, int &value) |
Parse an integer value read from the input parameter file. | |
void | PrintLabel (std::ostream &os, const std::string &lbl) |
Helper function to standardize printing of text labels to file. | |
void | StringToLower (std::string &str) |
Convert a string to lowercase. | |
void | Version (std::ostream &os=std::cout) |
Print version information to the specified output stream. | |
Interface header for this driver executable.
ReturnCode CallAeronauticalStatisticalModel | ( | ASMParams & | asm_params, |
std::vector< double > & | L_ces__db ) |
Top-level control function for Aeronautical Statistical Model operation.
[in] | asm_params | Aeronautical Statistical Model input parameter struct |
[out] | L_ces__db | Basic transmission loss, in dB |
ReturnCode CallHeightGainTerminalCorrectionModel | ( | HGTCMParams & | hgtcm_params, |
std::vector< double > & | A_h__db ) |
Top-level control function for Height Gain Terminal Correction Model.
[in] | hgtcm_params | Height Gain Terminal Correction Model input struct |
[out] | A_h__db | Additional loss (clutter loss), in dB |
ReturnCode CallTerrestrialStatisticalModel | ( | TSMParams & | tsm_params, |
std::vector< double > & | L_ctt__db ) |
Top-level control function for Terrestrial Statistical Model operation.
[in] | tsm_params | Terrestrial Statistical Model input parameter struct |
[out] | L_ctt__db | Additional loss (clutter loss), in dB |
std::string GetDatetimeString | ( | ) |
Get a string containing the current date and time information.
void Help | ( | std::ostream & | os | ) |
Print help instructions to the terminal.
[in] | os | Output stream for writing; defaults to std::cout |
DrvrReturnCode ParseArguments | ( | int | argc, |
char ** | argv, | ||
DrvrParams & | params ) |
Parse the command line arguments.
[in] | argc | Number of arguments |
[in] | argv | Command line arguments |
[out] | params | Structure with user input params |
DrvrReturnCode ParseASMInputFile | ( | const std::string & | in_file, |
ASMParams & | asm_params ) |
Parse Aeronautical Statistical Model input parameter file.
[in] | in_file | Path to ASM input parameter file |
[out] | asm_params | ASM input parameter struct |
DrvrReturnCode ParseASMInputStream | ( | std::istream & | stream, |
ASMParams & | asm_params ) |
Parse input stream (file or string stream) to ASM parameter struct.
[in] | stream | Input stream containing ASM parameters |
[out] | asm_params | ASM input parameter struct |
DrvrReturnCode ParseBoolean | ( | const std::string & | str, |
bool & | value ) |
Parse a boolean value read from the input parameter file.
Supports either "true" or "false" (case-insensitive) or "0" or "1"
[in] | str | Input file value as string |
[out] | value | Input file value converted to bool |
DrvrReturnCode ParseDouble | ( | const std::string & | str, |
double & | value ) |
Parse a double value read from the input parameter file.
[in] | str | Input file value as string |
[out] | value | Input file value converted to double |
DrvrReturnCode ParseHGTCMInputFile | ( | const std::string & | in_file, |
HGTCMParams & | hgtcm_params ) |
Parse Height Gain Terminal Correction Model input parameter file.
[in] | in_file | Path to HGTCM input parameter file |
[out] | hgtcm_params | HGTCM input parameter struct |
DrvrReturnCode ParseHGTCMInputStream | ( | std::istream & | stream, |
HGTCMParams & | hgtcm_params ) |
Parse input stream (file or string stream) to HGTCM parameter struct.
[in] | stream | Input stream containing HGTCM parameters |
[out] | hgtcm_params | HGTCM input parameter struct |
DrvrReturnCode ParseInteger | ( | const std::string & | str, |
int & | value ) |
Parse an integer value read from the input parameter file.
[in] | str | Input file value as string |
[out] | value | Input file value converted to int |
DrvrReturnCode ParseTSMInputFile | ( | const std::string & | in_file, |
TSMParams & | tsm_params ) |
Parse Terrestrial Statistical Model input parameter file.
[in] | in_file | Path to TSM input parameter file |
[out] | tsm_params | TSM input parameter struct |
DrvrReturnCode ParseTSMInputStream | ( | std::istream & | stream, |
TSMParams & | tsm_params ) |
Parse input stream (file or string stream) to TSM parameter struct.
[in] | stream | Input stream containing TSM parameters |
[out] | tsm_params | TSM input parameter struct |
void PrintClutterTypeLabel | ( | std::ofstream & | fp, |
const ClutterType | clutter_type ) |
Print text message corresponding to clutter type enum value.
[in] | fp | Output stream, a text file open for writing |
[in] | clutter_type | Height Gain Terminal Correction Model clutter type |
void PrintLabel | ( | std::ostream & | os, |
const std::string & | lbl ) |
Helper function to standardize printing of text labels to file.
[in] | os | Output stream for writing |
[in] | lbl | Text message |
void StringToLower | ( | std::string & | str | ) |
Convert a string to lowercase.
[in,out] | str | The string to convert |
DrvrReturnCode ValidateInputs | ( | const DrvrParams & | params | ) |
Validate that required inputs are present for the mode specified by the user.
This function DOES NOT check the validity of the parameter values, only that required parameters have been specified by the user
[in] | params | Structure with user input parameters |
void Version | ( | std::ostream & | os | ) |
Print version information to the specified output stream.
[in] | os | Output stream for writing; defaults to std::cout |
void WriteASMInputs | ( | std::ofstream & | fp, |
const ASMParams & | params ) |
Write Aeronautical Statistical Model inputs to the report file.
[in] | fp | Output stream, a text file open for writing |
[in] | params | ASM input parameter struct |
void WriteHGTCMInputs | ( | std::ofstream & | fp, |
const HGTCMParams & | params ) |
Write Height Gain Terminal Correction Model inputs to the report file.
[in] | fp | Output stream, a text file open for writing |
[in] | params | HGTCM input parameter struct |
void WriteTSMInputs | ( | std::ofstream & | fp, |
const TSMParams & | params ) |
Write Terrestrial Statistical Model inputs to the report file.
[in] | fp | Output stream, a text file open for writing |
[in] | params | TSM input parameter struct |