8
#include <boost/date_time/posix_time/ptime.hpp>
12
/* We are expecting the time in CSV to be in GMT using following format (Excel
13
compatible): 31-Jan-07 23:59:59 */
16
template <class TElement = double>
18
std::istream *csv_stream;
19
std::string date_format;
22
CSVCustom(std::istream &in) : date_format("%d-%b-%y %H:%M:%S") {
26
void set_date_format(string &format);
27
void parse_time(boost::posix_time::ptime &parsed_time, std::string &string_time);
30
void get_headers(std::vector<std::string> &headers);
31
bool skip_rows(boost::posix_time::ptime to);
32
bool get_row(boost::posix_time::ptime &header, vector<TElement> &data);
33
bool get_row(boost::posix_time::ptime &header, std::size_t n_columns, TElement *column);
34
bool get_row(time_t &header, vector<TElement> &data);
35
bool get_row(time_t &header, std::size_t n_columns, TElement *column);
38
typedef CSVCustom<> CSV;
41
#endif /* _DS_CSV_H */