|
std::string | mio::getLibVersion () |
| Return the library version. More...
|
|
double | mio::IOUtils::bearing_to_angle (const double &bearing) |
| Converts a compass bearing to a trigonometric angle. More...
|
|
double | mio::IOUtils::angle_to_bearing (const double &angle) |
| Converts a trigonometric angle to a compass bearing. More...
|
|
double | mio::IOUtils::bearing (std::string bearing_str) |
| Converts a string bearing to a compass bearing. More...
|
|
std::string | mio::IOUtils::bearing (double bearing) |
| Converts a compass bearing to a string bearing. More...
|
|
void | mio::IOUtils::stripComments (std::string &str) |
|
void | mio::IOUtils::trim (std::string &s) |
| Removes trailing and leading whitespaces, tabs and newlines from a string. More...
|
|
void | mio::IOUtils::toUpper (std::string &str) |
|
void | mio::IOUtils::toLower (std::string &str) |
|
std::string | mio::IOUtils::strToUpper (std::string str) |
|
std::string | mio::IOUtils::strToLower (std::string str) |
|
bool | mio::IOUtils::isNumeric (std::string str, const unsigned int &nBase) |
|
bool | mio::IOUtils::readKeyValuePair (const std::string &in_line, const std::string &delimiter, std::string &key, std::string &value, const bool &setToUpperCase=false) |
| read a string line, parse it and save it into a map object, that is passed by reference More...
|
|
std::string | mio::IOUtils::getLogName () |
| Retrieve the user name This checks various environment variables (USERNAME, USER, LOGNAME). More...
|
|
std::string | mio::IOUtils::getHostName () |
| Retrieve the name of the computer running the binary. More...
|
|
size_t | mio::IOUtils::readLineToVec (const std::string &line_in, std::vector< double > &vec_data) |
|
size_t | mio::IOUtils::readLineToVec (const std::string &line_in, std::vector< std::string > &vecString) |
|
size_t | mio::IOUtils::readLineToVec (const std::string &line_in, std::vector< std::string > &vecString, const char &delim) |
|
template<> |
bool | mio::IOUtils::convertString< std::string > (std::string &t, const std::string &str, std::ios_base &(*f)(std::ios_base &)) |
|
template<> |
bool | mio::IOUtils::convertString< bool > (bool &t, const std::string &str, std::ios_base &(*f)(std::ios_base &)) |
|
template<> |
bool | mio::IOUtils::convertString< double > (double &t, const std::string &str, std::ios_base &(*f)(std::ios_base &)) |
|
template<> |
bool | mio::IOUtils::convertString< unsigned int > (unsigned int &t, const std::string &str, std::ios_base &(*f)(std::ios_base &)) |
|
bool | mio::IOUtils::convertString (Date &t, const std::string &str, const double &time_zone, std::ios_base &(*f)(std::ios_base &)) |
|
template<> |
bool | mio::IOUtils::convertString< Coords > (Coords &t, const std::string &str, std::ios_base &(*f)(std::ios_base &)) |
|
void | mio::IOUtils::getProjectionParameters (const Config &cfg, std::string &coordin, std::string &coordinparam, std::string &coordout, std::string &coordoutparam) |
| A function that parses a Config object for COORSYS, COORDPARAM keywords in [Input] and [Output] section and sets the respective strings to the values of those keywords. More...
|
|
void | mio::IOUtils::getTimeZoneParameters (const Config &cfg, double &tz_in, double &tz_out) |
| A function that parses a Config object for the time_zone keyword and returns the timezone. More...
|
|
size_t | mio::IOUtils::seek (const Date &soughtdate, const std::vector< MeteoData > &vecM, const bool &exactmatch=true) |
| Search for an element at a given date in a vector of MeteoData. The position of the matching date is returned or IOUtils::npos if not found. If exactmatch=false, the position of the first element after soughtdate is returned (or IOUtils::npos if this is not possible / relevant). More...
|
|
void | mio::IOUtils::getArraySliceParams (const size_t &dimx, const size_t &nbworkers, const size_t &wk, size_t &startx, size_t &nx) |
| Returns the parameters for splitting an array in several, balanced sub-arrays. This is mostly usefull for parallel calculations, where an array will be split and sent to different workers. More...
|
|
double | mio::IOUtils::unitsPrefix (const char &prefix) |
| Convert a textual representation of a unit prefix (like 'm' or 'G') to multiplying factor. More...
|
|
double | mio::IOUtils::unitsConversion (const double &val, std::string unitIn, std::string unitOut) |
| Performs simple unit conversion (supports temperature, prefixes and exponents) NOTE "composite" units such as 'K/m' or 'N/m2' are currently NOT supported. More...
|
|