Engauge Digitizer  2
Public Member Functions | Friends | List of all members
ExportFileFunctions Class Reference

Strategy class for exporting to a file. This strategy is external to the Document class so that class is simpler. More...

#include <ExportFileFunctions.h>

Inheritance diagram for ExportFileFunctions:
ExportFileAbstractBase

Public Member Functions

 ExportFileFunctions ()
 Single constructor.
 
void exportToFile (const DocumentModelExportFormat &modelExportOverride, const Document &document, const MainWindowModel &modelMainWindow, const Transformation &transformation, QTextStream &str, unsigned int &numWritesSoFar) const
 Export Document points according to the settings. More...
 
- Public Member Functions inherited from ExportFileAbstractBase
 ExportFileAbstractBase ()
 Single constructor.
 

Friends

class TestExport
 

Additional Inherited Members

- Protected Member Functions inherited from ExportFileAbstractBase
QStringList curvesToInclude (const DocumentModelExportFormat &modelExportOverride, const Document &document, const QStringList &curvesGraphsNames, CurveConnectAs curveConnectAs1, CurveConnectAs curveConnectAs2) const
 Identify curves to include in export. The specified DocumentModelExportFormat overrides same data in Document for previewing window.
 
void destroy2DArray (QVector< QVector< QString *> > &array) const
 Deallocate memory for array.
 
QString gnuplotComment () const
 Gnuplot comment delimiter.
 
void insertLineSeparator (bool isFirst, ExportHeader exportHeader, QTextStream &str) const
 Insert line(s) between successive sets of curves.
 
QString wrapInDoubleQuotesIfNeeded (const DocumentModelExportFormat &modelExportOverride, const QString &valueString) const
 RFC 4180 says if values are delimited by a comma AND a value has commas in it (for locale like English/Switzerland when dealing with numbers) then double quotes are required for the value. More...
 

Detailed Description

Strategy class for exporting to a file. This strategy is external to the Document class so that class is simpler.

Definition at line 24 of file ExportFileFunctions.h.

Member Function Documentation

◆ exportToFile()

void ExportFileFunctions::exportToFile ( const DocumentModelExportFormat modelExportOverride,
const Document document,
const MainWindowModel modelMainWindow,
const Transformation transformation,
QTextStream &  str,
unsigned int &  numWritesSoFar 
) const

Export Document points according to the settings.

The DocumentModelExportFormat inside the Document is ignored so DlgSettingsExport can supply its own DocumentModelExportFormat when previewing what would be exported.

Definition at line 127 of file ExportFileFunctions.cpp.


The documentation for this class was generated from the following files: