MI - Fimex
Classes | Namespaces | Typedefs | Functions
Utils.h File Reference
#include <vector>
#include <utility>
#include <iterator>
#include <sstream>
#include <cmath>
#include <boost/date_time/posix_time/posix_time_types.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
#include <boost/regex.hpp>
#include <limits>
#include "fimex/CDMException.h"
#include "fimex/UnitsConverter.h"
#include <boost/shared_array.hpp>

Go to the source code of this file.

Classes

struct  MetNoFimex::Varargs< T >
 
struct  MetNoFimex::staticCast< OUT >
 
class  MetNoFimex::ScaleValue< IN, OUT >
 
class  MetNoFimex::ScaleValueUnits< IN, OUT >
 
class  MetNoFimex::ChangeMissingValue< IN, OUT >
 
struct  MetNoFimex::SharedArrayConstCastDeleter< T >
 

Namespaces

 MetNoFimex
 

Typedefs

typedef long MetNoFimex::epoch_seconds
 

Functions

int MetNoFimex::round (double num)
 
std::string MetNoFimex::trim (const std::string &str)
 
template<class InputIterator >
std::string MetNoFimex::join (InputIterator start, InputIterator end, std::string delim=",")
 
template<typename InputIterator >
std::pair< typename std::iterator_traits< InputIterator >::difference_type, typename std::iterator_traits< InputIterator >::difference_type > MetNoFimex::find_closest_distinct_elements (InputIterator start, InputIterator end, double x)
 
template<typename InputIterator >
std::pair< typename std::iterator_traits< InputIterator >::difference_type, typename std::iterator_traits< InputIterator >::difference_type > MetNoFimex::find_closest_neighbor_distinct_elements (InputIterator start, InputIterator end, double x)
 
template<class InputIterator >
std::string MetNoFimex::joinPtr (InputIterator start, InputIterator end, std::string delim=",")
 
std::vector< std::stringMetNoFimex::tokenize (const std::string &str, const std::string &delimiters=" ")
 
std::string MetNoFimex::string2lowerCase (const std::string &str)
 
template<typename T >
std::string MetNoFimex::type2string (T in)
 
template<>
std::string MetNoFimex::type2string< double > (double in)
 
template<typename T >
MetNoFimex::string2type (std::string s)
 
template<typename T >
MetNoFimex::normalizeLongitude180 (T in)
 
epoch_seconds MetNoFimex::posixTime2epochTime (const boost::posix_time::ptime &time)
 
template<typename T >
std::vector< T > MetNoFimex::tokenizeDotted (const std::string &str, const std::string &delimiter=",") throw (CDMException)
 
template<typename C >
int MetNoFimex::mifi_isnan (C x)
 
void MetNoFimex::scanFiles (std::vector< std::string > &files, const std::string &dir, int depth, const boost::regex &regexp, bool matchFileOnly)
 
void MetNoFimex::globFiles (std::vector< std::string > &files, const std::string &glob)
 
template<typename T >
boost::shared_array< const T > MetNoFimex::makeSharedArrayConst (const boost::shared_array< T > &sa)