ITS.Propagation.LFMF 1.1
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. | |
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. | |
ReturnCode | CallLFMFModel (LFMFParams &lfmf_params, Result &result) |
Top-level control function for LFMF Model. | |
DrvrReturnCode | ParseLFMFInputFile (const std::string &in_file, LFMFParams &lfmf_params) |
Parse LFMF Model input parameter file. | |
void | WriteLFMFInputs (std::ofstream &fp, const LFMFParams ¶ms) |
Write LFMF Model inputs to the report file. | |
void | WriteLFMFOutputs (std::ofstream &fp, const Result &result) |
Write LFMF Model outputs to the report file. | |
Interface header for this driver executable.
ReturnCode CallLFMFModel | ( | LFMFParams & | lfmf_params, |
Result & | result ) |
Top-level control function for LFMF Model.
[in] | lfmf_params | LFMF Model input parameter struct |
[out] | result | LFMF Results in Result struct |
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 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 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 ParseLFMFInputFile | ( | const std::string & | in_file, |
LFMFParams & | lfmf_params ) |
Parse LFMF Model input parameter file.
[in] | in_file | Path to LFMF input parameter file |
[out] | lfmf_params | LFMF input parameter struct |
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 WriteLFMFInputs | ( | std::ofstream & | fp, |
const LFMFParams & | params ) |
Write LFMF Model inputs to the report file.
[in] | fp | Output stream, a text file open for writing |
[in] | params | LFMF input parameter struct |
void WriteLFMFOutputs | ( | std::ofstream & | fp, |
const Result & | result ) |
Write LFMF Model outputs to the report file.
[in] | fp | Output stream, a text file open for writing |
[in] | result | LFMF output result struct |