14#include <QXmlStreamWriter>
71 m_delimiter (document.modelExport().
delimiter()),
74 m_header (document.modelExport().
header()),
75 m_xLabel (document.modelExport().
xLabel())
109 m_header = other.
header();
110 m_xLabel = other.
xLabel();
117 return m_curveNamesNotExported;
127 return m_extrapolateOutsideEndpoints;
137 return m_layoutFunctions;
146 QXmlStreamAttributes attributes = reader.attributes();
190 if (reader.atEnd()) {
201 while (tokenType == QXmlStreamReader::StartElement) {
213 while ((reader.tokenType() != QXmlStreamReader::EndElement) ||
216 if (reader.atEnd()) {
225 reader.raiseError (QObject::tr (
"Cannot read export data"));
231 return m_overrideCsvTsv;
236 return m_pointsIntervalFunctions;
241 return m_pointsIntervalRelations;
246 return m_pointsIntervalUnitsFunctions;
251 return m_pointsIntervalUnitsRelations;
256 return m_pointsSelectionFunctions;
261 return m_pointsSelectionRelations;
265 QTextStream &str)
const
267 str << indentation <<
"DocumentModelExportFormat\n";
271 str << indentation <<
"curveNamesNotExported=";
272 QStringList::const_iterator itr;
273 for (itr = m_curveNamesNotExported.begin (); itr != m_curveNamesNotExported.end(); itr++) {
274 QString curveName = *itr;
275 str << indentation << curveName <<
" ";
279 str << indentation <<
"exportPointsSelectionFunctions="
281 str << indentation <<
"pointsIntervalFunctions=" << m_pointsIntervalFunctions <<
"\n";
282 str << indentation <<
"pointsIntervalUnitsFunctions="
284 str << indentation <<
"exportPointsSelectionRelations="
286 str << indentation <<
"pointsIntervalRelations=" << m_pointsIntervalRelations <<
"\n";
287 str << indentation <<
"pointsIntervalUnitsRelations="
291 str << indentation <<
"exportExtrapolateOutsideEndpoints=" << (m_extrapolateOutsideEndpoints ?
"yes" :
"no") <<
"\n";
292 str << indentation <<
"overrideCsvTsv=" << (m_overrideCsvTsv ?
"true" :
"false") <<
"\n";
294 str << indentation <<
"xLabel=" << m_xLabel <<
"\n";
326 QStringList::const_iterator itr;
327 for (itr = m_curveNamesNotExported.begin (); itr != m_curveNamesNotExported.end (); itr++) {
328 QString curveNameNotExported = *itr;
331 writer.writeEndElement();
333 writer.writeEndElement();
335 writer.writeEndElement();
const QString DOCUMENT_SERIALIZE_EXPORT_POINTS_SELECTION_RELATIONS
const QString DOCUMENT_SERIALIZE_EXPORT_X_LABEL
const QString DOCUMENT_SERIALIZE_EXPORT_EXTRAPOLATE_OUTSIDE_ENDPOINTS
const QString DOCUMENT_SERIALIZE_EXPORT_DELIMITER
const QString DOCUMENT_SERIALIZE_EXPORT_CURVE_NAMES_NOT_EXPORTED
const QString DOCUMENT_SERIALIZE_EXPORT_POINTS_INTERVAL_FUNCTIONS
const QString DOCUMENT_SERIALIZE_EXPORT_CURVE_NAME_NOT_EXPORTED_NAME
const QString DOCUMENT_SERIALIZE_EXPORT
const QString DOCUMENT_SERIALIZE_EXPORT_POINTS_SELECTION_FUNCTIONS
const QString DOCUMENT_SERIALIZE_EXPORT_DELIMITER_STRING
const QString DOCUMENT_SERIALIZE_EXPORT_POINTS_INTERVAL_UNITS_FUNCTIONS
const QString DOCUMENT_SERIALIZE_EXPORT_CURVE_NAME_NOT_EXPORTED
const QString DOCUMENT_SERIALIZE_EXPORT_DELIMITER_OVERRIDE_CSV_TSV
const QString DOCUMENT_SERIALIZE_EXPORT_HEADER
const QString DOCUMENT_SERIALIZE_EXPORT_LAYOUT_FUNCTIONS
const QString DOCUMENT_SERIALIZE_EXPORT_POINTS_SELECTION_FUNCTIONS_STRING
const QString DOCUMENT_SERIALIZE_EXPORT_POINTS_INTERVAL_RELATIONS
const QString DOCUMENT_SERIALIZE_EXPORT_LAYOUT_FUNCTIONS_STRING
const QString DOCUMENT_SERIALIZE_EXPORT_HEADER_STRING
const QString DOCUMENT_SERIALIZE_EXPORT_POINTS_INTERVAL_UNITS_RELATIONS
const QString DOCUMENT_SERIALIZE_BOOL_TRUE
const QString DOCUMENT_SERIALIZE_BOOL_FALSE
const QString DOCUMENT_SERIALIZE_EXPORT_POINTS_SELECTION_RELATIONS_STRING
QString exportDelimiterToString(ExportDelimiter exportDelimiter)
ExportDelimiter
Delimiter values that may or may not be overridden by DOCUMENT_SERIALIZE_EXPORT_DELIMITER_OVERRIDE_CS...
QString exportLayoutFunctionsToString(ExportLayoutFunctions exportLayoutFunctions)
@ EXPORT_LAYOUT_ALL_PER_LINE
QString exportPointsIntervalUnitsToString(ExportPointsIntervalUnits exportPointsIntervalUnits)
ExportPointsIntervalUnits
@ EXPORT_POINTS_INTERVAL_UNITS_SCREEN
QString exportPointsSelectionFunctionsToString(ExportPointsSelectionFunctions exportPointsSelectionFunctions)
ExportPointsSelectionFunctions
@ EXPORT_POINTS_SELECTION_FUNCTIONS_INTERPOLATE_ALL_CURVES
QString exportPointsSelectionRelationsToString(ExportPointsSelectionRelations exportPointsSelectionRelations)
ExportPointsSelectionRelations
@ EXPORT_POINTS_SELECTION_RELATIONS_INTERPOLATE
log4cpp::Category * mainCat
const QString INDENTATION_DELTA
const QString SETTINGS_EXPORT_POINTS_INTERVAL_UNITS_RELATIONS
const QString SETTINGS_EXPORT_POINTS_SELECTION_FUNCTIONS
const QString SETTINGS_ENGAUGE
const QString SETTINGS_EXPORT_POINTS_INTERVAL_FUNCTIONS
const QString SETTINGS_EXPORT_X_LABEL
const QString SETTINGS_EXPORT_CURVE_NAMES_NOT_EXPORTED
const QString SETTINGS_EXPORT_DELIMITER
const QString SETTINGS_GROUP_EXPORT
const QString SETTINGS_EXPORT_POINTS_INTERVAL_RELATIONS
const QString SETTINGS_EXPORT_LAYOUT_FUNCTIONS
const QString SETTINGS_EXPORT_POINTS_SELECTION_RELATIONS
const QString SETTINGS_EXPORT_EXTRAPOLATE_OUTSIDE_ENDPOINTS
const QString SETTINGS_EXPORT_HEADER
const QString SETTINGS_EXPORT_POINTS_INTERVAL_UNITS_FUNCTIONS
const QString SETTINGS_EXPORT_DELIMITER_OVERRIDE_CSV_TSV
const QString SETTINGS_DIGITIZER
QXmlStreamReader::TokenType loadNextFromReader(QXmlStreamReader &reader)
Load next token from xml reader.
Storage of one imported image and the data attached to that image.
#define LOG4CPP_INFO_S(logger)