Engauge Digitizer  2
ExportFileAbstractBase.h
1 /******************************************************************************************************
2  * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #ifndef EXPORT_FILE_ABSTRACT_BASE_H
8 #define EXPORT_FILE_ABSTRACT_BASE_H
9 
10 #include "CurveConnectAs.h"
11 #include "ExportFileAbstractBase.h"
12 #include "ExportHeader.h"
13 #include <QStringList>
14 #include <QVector>
15 #include <vector>
16 
17 class Document;
19 class QTextStream;
20 class SplinePair;
21 class Transformation;
22 
25 {
26 public:
29 
30 protected:
31 
33  QStringList curvesToInclude (const DocumentModelExportFormat &modelExportOverride,
34  const Document &document,
35  const QStringList &curvesGraphsNames,
36  CurveConnectAs curveConnectAs1,
37  CurveConnectAs curveConnectAs2) const;
38 
40  void destroy2DArray (QVector<QVector<QString*> > &array) const;
41 
43  QString gnuplotComment() const;
44 
46  void insertLineSeparator (bool isFirst,
47  ExportHeader exportHeader,
48  QTextStream &str) const;
49 
53  QString wrapInDoubleQuotesIfNeeded (const DocumentModelExportFormat &modelExportOverride,
54  const QString &valueString) const;
55 };
56 
57 #endif // EXPORT_FILE_ABSTRACT_BASE_H
void destroy2DArray(QVector< QVector< QString *> > &array) const
Deallocate memory for array.
Model for DlgSettingsExportFormat and CmdSettingsExportFormat.
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 Englis...
Affine transformation between screen and graph coordinates, based on digitized axis points...
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 ...
QString gnuplotComment() const
Gnuplot comment delimiter.
Storage of one imported image and the data attached to that image.
Definition: Document.h:41
void insertLineSeparator(bool isFirst, ExportHeader exportHeader, QTextStream &str) const
Insert line(s) between successive sets of curves.
Strategy base class for exporting to a file. This class provides common methods.
ExportFileAbstractBase()
Single constructor.
Single X/Y pair for cubic spline interpolation initialization and calculations.
Definition: SplinePair.h:11