24#ifndef _GEMA_FILE_WRITER_H_
25#define _GEMA_FILE_WRITER_H_
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;
113 virtual bool endWrite() = 0;
The GmCellAccessor class is a proxy object to a value accesor implementing a more convenient interfac...
Definition gmCellAccessor.h:67
A generic auxiliary class for managing the various options that can be used to define the set of node...
Definition gmFileFilter.h:47
DumpMode
The dump mode when creating the file.
Definition gmFileIO.h:72
DiscontinuityDataMode
The selected mode when saving discontinuity data.
Definition gmFileIO.h:80
Basic interface for file serializers.
Definition gmFileWriter.h:37
virtual GmFileFormat * fileFormat()=0
Returns the file format of the serializer.
virtual bool saveData(const QVector< GmNodeAcResultsDataSrc * > &nodeData, const QVector< GmCellAcResultsDataSrc * > &cellData, const QVector< GmGaussAcResultsDataSrc * > &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...
const GmLogCategory & _logger
The logger used to report errors.
Definition gmFileWriter.h:150
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 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:147
GmFileWriter(const GmLogCategory &logger)
Constructor. Receives as parameter the logger used to report errors.
Definition gmFileWriter.h:41
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 ~GmFileWriter()
Destructor. Should call closeFiles() on derived classes.
Definition gmFileWriter.h:44
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 dumpSupport() const
This function should return true if this serializer supports saving dump files.
Definition gmFileWriter.h:132
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...
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:140
virtual QString tempFile()
Returns, if any, the name of the temp file used for the operation started with createFiles()
Definition gmFileWriter.h:123
virtual void flushFiles()=0
Flush opened files.
The GmGaussAccessor class is a proxy object to a value accessor implementing a more convenient interf...
Definition gmGaussAccessor.h:39
Class representing a category with multiple logging levels.
Definition gmLog.h:58
Auxiliar class used to store the complete set of simulation data.
Definition gmSimulationData.h:55
Interface class for accessing and setting values from an "indexable" collection of values.
Definition gmValueAccessor.h:60
Declaration of the GmFileIO class.