ITS.ITU.PSeries.P2108 1.0
Part of the NTIA/ITS Propagation Library
|
Implements various model-agnostic utility functions for the driver. More...
Functions | |
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) |
Print version information to the specified output stream. | |
Implements various model-agnostic utility functions for the driver.
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.
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 |
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 |
void Version | ( | std::ostream & | os | ) |
Print version information to the specified output stream.
[in] | os | Output stream for writing; defaults to std::cout |