Constructs CSVWriter using a comma for the separator.
More...
#include <csvwriter.hpp>
Constructs CSVWriter using a comma for the separator.
- Parameters
-
| writer | - the writer to an underlying CSV source. |
◆ CSVWriter() [1/2]
| CSVWriter::CSVWriter |
( |
Writer |
writer | ) |
|
|
inline |
◆ CSVWriter() [2/2]
| CSVWriter::CSVWriter |
( |
Writer |
writer, |
|
|
char |
separator, |
|
|
char |
quotechar, |
|
|
char |
escapechar, |
|
|
String |
lineEnd |
|
) |
| |
|
inline |
Constructs CSVWriter with supplied separator, quote char, escape char and line ending.
- Parameters
-
| writer | - the writer to an underlying CSV source. |
| separator | - the delimiter to use for separating entries |
| quotechar | - the character to use for quoted elements |
| escapechar | - the character to use for escaping quotechars or escapechars |
| lineEnd | - the line feed terminator to use |
◆ close()
| void CSVWriter::close |
( |
| ) |
throws IOException |
|
inline |
Close the underlying stream writer.
Close the underlying stream writer flushing any buffered content.
- Exceptions
-
| IOException | if bad things happen |
◆ flush()
| void CSVWriter::flush |
( |
| ) |
throws IOException |
|
inline |
Flush underlying stream to writer.
- Exceptions
-
| IOException | if bad things happen |
◆ writeNext()
| void CSVWriter::writeNext |
( |
QString |
nextLine | ) |
|
|
inline |
Writes the next line to the file.
- Parameters
-
| nextLine | - a string array with each comma-separated element as a separate entry. |
◆ escapechar
| char CSVWriter::escapechar |
|
private |
◆ lineEnd
| QString CSVWriter::lineEnd |
|
private |
◆ pw
| PrintWriter CSVWriter::pw |
|
private |
◆ quotechar
| char CSVWriter::quotechar |
|
private |
◆ separator
| char CSVWriter::separator |
|
private |
The documentation for this class was generated from the following file: