9 #ifndef __sella__file__GZCSVFileReader_H__
10 #define __sella__file__GZCSVFileReader_H__
12 #include "../util/CommonMacro.h"
13 #include "IOException.h"
24 class GZCSVFileReader;
44 void read(std::vector<std::vector<std::
string>> & data) THROWS(IOException);
45 void close(
bool unlink = false) NO_EXCEPTIONS;
49 bool read(std::vector<std::
string> & data, std::
string prepend) THROWS(IOException);
50 bool read(std::vector<std::
string> & data) THROWS(IOException);
61 uint8_t buffer[2][65536];
static const char DefaultDelimiter
The default delimiter used between the fields of a record; the ASCII record seperator character...
A GZIP compressed CSV reader.
GZCSVFileReader(const std::string &file, char delimiter=DefaultDelimiter, char seperator=DefaultSeperator) THROWS(IOException)
void close(bool unlink=false) NO_EXCEPTIONS
void read(std::vector< std::vector< std::string >> &data) THROWS(IOException)
static const char DefaultSeperator
The default seperator used between the records of a file; the ASCII group seperator character...