A GZIP compressed CSV path writer. More...
#include <GZCSVPathWriter.h>
Public Member Functions | |
| STANDARD_TYPEDEF (sella::file::GZCSVPathWriter) | |
| GZCSVPathWriter (const std::string &path, char delimiter=DefaultDelimiter, char seperator=DefaultSeperator) THROWS(IOException) | |
| void | write (const std::vector< std::vector< std::string >> &data) THROWS(IOException) |
Static Public Attributes | |
| static const char * | FileSuffix = ".csv.gz" |
| The file suffix for matching files in the directory for reading. | |
| static const char | DefaultDelimiter = 0x1e |
| The default delimiter used between the fields of a record; the ASCII record seperator character. | |
| static const char | DefaultSeperator = 0x1d |
| The default seperator used between the records of a file; the ASCII group seperator character. | |
A GZIP compressed CSV path writer.
Definition at line 31 of file GZCSVPathWriter.h.
| GZCSVPathWriter::GZCSVPathWriter | ( | const std::string & | path, |
| char | delimiter = DefaultDelimiter, |
||
| char | seperator = DefaultSeperator |
||
| ) |
The base constructor for a path writer.
| [in] | path | The full path to write files to. |
| [in] | delimiter | The field delimiter character for files. |
| [in] | seperator | The record seperator character for files. |
| IOException | if the path cannot be opened for writing. |
Definition at line 30 of file GZCSVPathWriter.cpp.
| void GZCSVPathWriter::write | ( | const std::vector< std::vector< std::string >> & | data | ) |
Create a database file and write all supplied records to it.
| [in] | data | The vector which contains all records to write to a file. |
| IOException | if unabled to write any record for any reason. |
Definition at line 59 of file GZCSVPathWriter.cpp.
References FileSuffix.
1.8.5