24 #ifndef _GEMA_FILE_WRITER_H_ 25 #define _GEMA_FILE_WRITER_H_ 30 #include <QVariantMap> 66 const QVariantMap& options,
bool multipleResults,
bool gaussValues,
bool discValues,
94 const UnitConverter* conv,
const double* scaleFactor,
const double* offset) = 0;
107 int extraColumns,
const QVector<int>& propertySets) = 0;
133 const QVariantMap& options,
int numNodeValues,
int numElemValues,
134 int intRuleSet,
bool multipleResults)
136 Q_UNUSED(fileName); Q_UNUSED(simData); Q_UNUSED(mesh); Q_UNUSED(options); Q_UNUSED(numNodeValues);
137 Q_UNUSED(numElemValues); Q_UNUSED(intRuleSet); Q_UNUSED(multipleResults);
146 Q_UNUSED(mesh); Q_UNUSED(nodeAcc); Q_UNUSED(scaleFactor); Q_UNUSED(offset);
159 Q_UNUSED(mesh); Q_UNUSED(accList); Q_UNUSED(iter); Q_UNUSED(currentTime); Q_UNUSED(split);
170 Q_UNUSED(mesh); Q_UNUSED(elemAccList); Q_UNUSED(gaussAccList); Q_UNUSED(iter); Q_UNUSED(currentTime); Q_UNUSED(split);
185 virtual bool closeFiles(
bool deleteFiles =
false) = 0;
virtual bool saveGeometry(GmValueAccessor *nodeAc, const double *scaleFactor, const double *offset)=0
Save mesh node coordinates, cell geometry and gauss rule set coordinates (if needed) to the file,...
virtual bool saveNodeCoordinates(const GmMesh *mesh, GmValueAccessor *nodeAcc, QList< double > &scaleFactor, QList< double > &offset)
Save mesh node coordinates to the file. Returns false on errors. Node coordinates should be multiplie...
Definition: gmFileWriter.h:144
virtual ~GmFileWriter()
Destructor. Should call closeFiles() on derived classes.
Definition: gmFileWriter.h:44
The GmGaussAccessor class is a proxy object to a value accesor implementing a more convenient interfa...
Definition: gmGaussAccessor.h:38
virtual bool saveElementData(const GmCellMesh *mesh, const QList< GmCellAccessor * > &elemAccList, const QList< GmGaussAccessor * > &gaussAccList, int iter, double currentTime, bool split)
Saves element data to the file. The accessor lists parameters contains accessors for the values to be...
Definition: gmFileWriter.h:167
virtual bool loadSavedItemsFromMap(QVariantMap &map)
This function should retrieve from the given map any internal writer state that was saved on a dump o...
Definition: gmFileWriter.h:212
Declaration of the GmFileIO class.
Interface class for accessing and setting values from an "indexable" collection of values.
Definition: gmValueAccessor.h:59
const GmLogCategory & _logger
The logger used to report errors.
Definition: gmFileWriter.h:215
Auxiliar class used to store the complete set of simulation data.
Definition: gmSimulationData.h:51
virtual GmFileFormat * fileFormat()=0
Returns the file format of the serializer.
virtual bool saveCellGeometry(const GmCellMesh *mesh)
Saves cell geometry to the file. Returns false on errors.
Definition: gmFileWriter.h:151
GmFileWriter(const GmLogCategory &logger)
Constructor. Receives as parameter the logger used to report errors.
Definition: gmFileWriter.h:41
The GmCellAccessor class is a proxy object to a value accesor implementing a more convenient interfac...
Definition: gmCellAccessor.h:66
Base interface class for CellMesh type plugins.
Definition: gmCellMesh.h:39
virtual bool saveData(const QVector< GmResultNodeDataSrc * > &nodeData, const QVector< GmResultCellDataSrc * > &cellData, const QVector< GmResultGaussDataSrc * > &gaussData, int extraColumns, const QVector< int > &propertySets)=0
Saves the current result set to the file for the node, cells and Gauss points as defined by the filte...
Basic interface for file serializers.
Definition: gmFileWriter.h:36
virtual QString tempFile()
Returns, if any, the name of the temp file used for the operation started with createFiles()
Definition: gmFileWriter.h:188
Class representing a category with multiple logging levels.
Definition: gmLog.h:58
DiscontinuityDataMode
The selected mode when saving discontinuity data.
Definition: gmFileIO.h:76
virtual void flushFiles()=0
Flush opened files.
DumpMode
The dump mode when creating the file.
Definition: gmFileIO.h:68
virtual bool addSavedItemsToMap(QVariantMap &map)
This function should add to map any internal serializer state that must be saved on a dump operation,...
Definition: gmFileWriter.h:205
virtual bool saveDiscontinuities(const QVector< GmDiscontinuitySet * > &sets, GmFileIO::DiscontinuityDataMode mode, const UnitConverter *conv, const double *scaleFactor, const double *offset)=0
Save discontinuity geometry data to the file. THe mode parameter defines which data should be saved....
virtual bool closeFiles(bool deleteFiles=false)=0
Closes the set of files opened by a call to createFiles(). Will be called automatically by the destru...
Base interface class for Mesh type plugins.
Definition: gmMesh.h:44
virtual bool setCurrentTime(int iter, double time)=0
Sets the current time step, valid for the next calls to saveGeometry() and/or saveData()....
virtual bool saveNodeData(const GmMesh *mesh, const QList< GmValueAccessor * > &accList, int iter, double currentTime, bool split)
Saves node data to the file. The accList parameter contains accessors for the values to be saved....
Definition: gmFileWriter.h:157
virtual bool dumpSupport() const
This function should return true if this serializer supports saving dump files.
Definition: gmFileWriter.h:197
A generic auxilliary class for managing the various options that can be used to define the set of nod...
Definition: gmFileFilter.h:45