MeteoIODoc 2.11.0
mio::CsvDateTime Class Reference

Detailed Description

class to contain date and time parsing information

#include <CsvParams.h>

Public Types

enum  decimal_date_formats {
  EXCEL , JULIAN , MJULIAN , MATLAB ,
  RFC868 , UNIX
}
 

Public Member Functions

 CsvDateTime (const double &tz_in)
 
void updateMaxCol ()
 
int getFixedYear (const double &i_jdn)
 
int getFixedYear (const int &i_month)
 
int getFixedHour ()
 
bool isSet () const
 
void setDateTimeSpec (const std::string &datetime_spec)
 
void setDateSpec (const std::string &date_spec)
 
void setTimeSpec (const std::string &time_spec)
 
void setDecimalDateType (std::string i_decimaldate_type)
 
void setFixedYear (const int &i_year, const bool &i_auto_wrap)
 
void setFixedHour (const int &i_hour)
 
bool parseField (const std::string &fieldname, const size_t &ii)
 
Date parseDate (const std::vector< std::string > &vecFields)
 
std::string toString () const
 

Public Attributes

size_t max_dt_col
 Maximum index of a date/time field (for optimized parsing) More...
 
bool auto_wrap
 if true, dates >= October will be assumed to belong to (year_cst-1) until a date < October is encountered More...
 

Member Enumeration Documentation

◆ decimal_date_formats

Enumerator
EXCEL 

Excel date.

JULIAN 

standard julian date

MJULIAN 

Modified julian date.

MATLAB 

Matlab date.

RFC868 

RFC 868 date.

UNIX 

Unix date.

Constructor & Destructor Documentation

◆ CsvDateTime()

mio::CsvDateTime::CsvDateTime ( const double &  tz_in)

Member Function Documentation

◆ getFixedHour()

int mio::CsvDateTime::getFixedHour ( )

◆ getFixedYear() [1/2]

int mio::CsvDateTime::getFixedYear ( const double &  i_jdn)

◆ getFixedYear() [2/2]

int mio::CsvDateTime::getFixedYear ( const int &  i_month)

◆ isSet()

bool mio::CsvDateTime::isSet ( ) const

◆ parseDate()

Date mio::CsvDateTime::parseDate ( const std::vector< std::string > &  vecFields)

◆ parseField()

bool mio::CsvDateTime::parseField ( const std::string &  fieldname,
const size_t &  ii 
)

◆ setDateSpec()

void mio::CsvDateTime::setDateSpec ( const std::string &  date_spec)

◆ setDateTimeSpec()

void mio::CsvDateTime::setDateTimeSpec ( const std::string &  datetime_spec)

◆ setDecimalDateType()

void mio::CsvDateTime::setDecimalDateType ( std::string  i_decimaldate_type)

◆ setFixedHour()

void mio::CsvDateTime::setFixedHour ( const int &  i_hour)

◆ setFixedYear()

void mio::CsvDateTime::setFixedYear ( const int &  i_year,
const bool &  i_auto_wrap 
)

◆ setTimeSpec()

void mio::CsvDateTime::setTimeSpec ( const std::string &  time_spec)

◆ toString()

std::string mio::CsvDateTime::toString ( ) const

◆ updateMaxCol()

void mio::CsvDateTime::updateMaxCol ( )

Member Data Documentation

◆ auto_wrap

bool mio::CsvDateTime::auto_wrap

if true, dates >= October will be assumed to belong to (year_cst-1) until a date < October is encountered

◆ max_dt_col

size_t mio::CsvDateTime::max_dt_col

Maximum index of a date/time field (for optimized parsing)


The documentation for this class was generated from the following files: