#include <string>
#include "IOException.h"
Go to the source code of this file.
|
namespace | nidas::util |
| General utility classes. nidas::util contains classes of general utility, like Socket, Thread, etc. The classes use only the standard Unix system libraries and libstdc++, and have no dependency on other external packages such as an XML parser, or a logging package.
|
|
namespace | nidas |
| Root namespace for the NCAR In-Situ Data Acquisition Software.
|
|
|
std::string | nidas::util::replaceBackslashSequences (const std::string &str) |
| Utility function for replacing backslash sequences in a string.
|
|
std::string | nidas::util::addBackslashSequences (const std::string &str) |
| Utility function for substituting backslash sequences back into a string.
|
|
void | nidas::util::trimString (std::string &str) |
| Utility to remove white space characters (matching isspace()) from end of string.
|
|
void | nidas::util::replaceCharsIn (std::string &in, const std::string &pat, const std::string &rep) |
| Replace all occurences of pat in string in with rep.
|
|
std::string | nidas::util::replaceChars (const std::string &in, const std::string &pat, const std::string &rep) |
|
std::string | nidas::util::svnStatus (const std::string &path) |
| Run "svn status -v --depth empty" on a path and return a concatentated string of revision + flags, where flags are the first 8 characters.
|
|
float | nidas::util::dirFromUV (float u, float v) |
| Calculate wind direction in degrees from U and V wind components, or if U and V are both zero return NAN as wind direction is undefined.
|
|
void | nidas::util::derive_uv_from_spd_dir (float &u, float &v, float &spd, float &dir) |
| Normalize dir, then derive u and v from spd and direction.
|
|
void | nidas::util::derive_spd_dir_from_uv (float &spd, float &dir, float &u, float &v) |
| Derive speed and direction from wind components u, v.
|
|