|
unsigned long | VieVS::util::getNumberOfStations (const boost::property_tree::ptree &xml) |
| get number of stations from xml file More...
|
|
std::vector< std::string > | VieVS::util::getStationNames (const boost::property_tree::ptree &xml) |
| get station names from xml file More...
|
|
std::string | VieVS::util::ra2dms (double angle) |
| convert right ascension to string More...
|
|
std::string | VieVS::util::ra2dms_astFormat (double angle) |
| convert right ascension to string More...
|
|
std::string | VieVS::util::dc2hms (double angle) |
| convert declination to string More...
|
|
std::string | VieVS::util::dc2hms_astFormat (double angle) |
| convert declination to string More...
|
|
double | VieVS::util::freqency2wavelenth (double frequency) |
| transforms frequency to wavelength More...
|
|
double | VieVS::util::wavelength2frequency (double wavelength) |
| transforms wavelength to frequency More...
|
|
double | VieVS::util::wrap2twoPi (double angle) |
| wrap angle to interval [0, 2*pi) More...
|
|
double | VieVS::util::wrap2pi (double angle) |
| wrap angle to interval [-pi, pi) More...
|
|
int | VieVS::util::duration (const boost::posix_time::ptime &start, const boost::posix_time::ptime &end) |
| calculate duration between two time points More...
|
|
std::string | VieVS::util::version () |
| software version number More...
|
|
template<typename T > |
T | VieVS::util::absDiff (const T &a, const T &b) |
| absolute difference between two points More...
|
|
template<typename T > |
std::vector< int > | VieVS::util::sortIndexes (const std::vector< T > &v) |
| indices of sorted vector elements More...
|
|
template<typename K , typename V > |
bool | VieVS::util::valueExists (std::map< K, V > mapOfElemen, V value) |
| checks if a value already exists in a map More...
|
|
void | VieVS::util::outputObjectList (const std::string &title, const std::vector< std::string > &names, std::ofstream &of, unsigned long indents=4) |
| outputs list of objects More...
|
|
std::string | VieVS::util::weekDay2string (int weekday) |
| convert weekday integer to string More...
|
|
std::string | VieVS::util::month2string (int month) |
| convert month integer to string More...
|
|
template<typename A , typename B > |
std::pair< B, A > | VieVS::util::flip_pair (const std::pair< A, B > &p) |
| flip pair More...
|
|
template<typename A , typename B > |
std::map< B, A > | VieVS::util::flip_map (const std::map< A, B > &src) |
| flip map More...
|
|
char | VieVS::util::numberOfScans2char (long n) |
| converts number of scans (within 900 sec) to character for output tables More...
|
|
std::string | VieVS::util::numberOfScans2char_header () |
| translation table for number of scans (within 900 sec) to character for output tables More...
|
|
void | VieVS::util::simplify_inline (std::string &str) |
| simplifies the string inline More...
|
|
std::string | VieVS::util::simplify (const std::string &str) |
| generates simplified version of string More...
|
|
std::string | VieVS::util::milliseconds2string (long long int usec, bool forceSeconds=false) |
| converts microseconds to string More...
|
|
std::string | VieVS::util::version2prefix (int version) |
| version number to prefix More...
|
|
utillity functions for VieSched++
- Author
- Matthias Schartner
- Date
- 07.05.2018