9 #ifndef __sella__file__GZCSVFileWriter_H__
10 #define __sella__file__GZCSVFileWriter_H__
12 #include "../util/CommonMacro.h"
13 #include "IOException.h"
24 class GZCSVFileWriter;
44 void write(const std::vector<std::
string> & data) THROWS(IOException);
45 void close(const std::
string & rename = std::
string()) THROWS(IOException);
49 void write(uint8_t * input, ssize_t length,
int flush) THROWS(IOException);
60 uint8_t buffer[2][65536];
A GZIP compressed CSV writer.
void write(const std::vector< std::string > &data) THROWS(IOException)
void close(const std::string &rename=std::string()) THROWS(IOException)
static const char DefaultDelimiter
The default delimiter used between the fields of a record; the ASCII record seperator character...
static const char DefaultSeperator
The default seperator used between the records of a file; the ASCII group seperator character...
GZCSVFileWriter(const std::string &file, char delimiter=DefaultDelimiter, char seperator=DefaultSeperator) THROWS(IOException)