31 : _directory(directory)
40 throw OdsException(QString(
"unable to create output directory %1")
100 .append(this->_file_extension));
103 if(
mpa_ofile->open(QIODevice::WriteOnly))
109 throw OdsException(QString(
"unable to write into file %1")
110 .arg(QFileInfo(*mpa_ofile).absoluteFilePath()));
168 QString(text).replace(
"\"",
"\"\""));
176 QString(text).replace(
"\"",
"\"\""));
void writeLine() override
open a new line
virtual void writeSheet(const QString &sheetName) override
open a new sheet
bool setFlushLines(bool flushOk)
enable a physical flush on device at each new line enables this if you want to ensure that each line ...
TsvSeparator getSeparator() const
get the separator used between values (cells)
void writeEmptyCell() override
write an empty cell
QTextStream * mpa_otxtstream
bool isQuoteStrings() const
tells if the quote string flag is enabled
virtual void close() override
virtual ~TsvDirectoryWriter()
bool setQuoteStrings(bool quote_strings)
set a flag to quote strings
void writeCellPercentage(double value) override
write a double as a percentage
void writeRawCell(const QString &text)
void setSeparator(TsvSeparator separator)
sets the separator to use between values (cells)
unsigned int numFloatPrecision
void writeCell(const char *) override
write a text cell
bool isFlushLines() const
tells if the flush lines flag is enabled
TsvSeparator m_tsvSeparatorEnum