ExportFileAbstractBase Class Reference

Strategy base class for exporting to a file. This class provides common methods. More...

#include <ExportFileAbstractBase.h>

Inheritance diagram for ExportFileAbstractBase:
ExportFileFunctions ExportFileRelations

List of all members.

Public Member Functions

 ExportFileAbstractBase ()
 Single constructor.

Protected Member Functions

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.

Detailed Description

Strategy base class for exporting to a file. This class provides common methods.

Definition at line 24 of file ExportFileAbstractBase.h.


Member Function Documentation

QString ExportFileAbstractBase::wrapInDoubleQuotesIfNeeded ( const DocumentModelExportFormat modelExportOverride,
const QString &  valueString 
) const [protected]

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.

In other cases this method is a noop

Definition at line 89 of file ExportFileAbstractBase.cpp.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Friends

Generated on 21 Oct 2017 for Engauge Digitizer by  doxygen 1.6.1