![]() |
GemaCoreLib
The GeMA Core library
|
Basic interface for file deserializers. More...
#include <gmFileReader.h>
Public Member Functions | |
GmFileReader (const GmLogCategory &logger) | |
Constructor. Receives as parameter the logger used to report errors. | |
virtual | ~GmFileReader () |
Destructor. Should call closeFiles() on derived classes. | |
virtual bool | openFiles (QString fileName, int numNodeValues, int numElemValues)=0 |
virtual bool | initializeMesh (GmMesh *mesh, const QStringList &nodeValues, const QList< Unit > &nodeUnits, const QStringList &elementValues, const QList< Unit > &elementUnits)=0 |
Initialize the mesh structure. | |
virtual bool | readNodeCoordinates (GmMesh *mesh, Unit coordUnit)=0 |
Reads mesh node coordinates in the file and fill the mesh structure. Returns false on errors. | |
virtual bool | readCellGeometry (GmCellMesh *cellmesh)=0 |
Reads cell geometry in the file and fill the mesh structure. Returns false on errors. | |
virtual bool | readNodeData (GmMesh *mesh, const QStringList &nodeValues, const QList< Unit > &nodeUnits)=0 |
Reads node data from the file. Returns false on errors. | |
virtual bool | readCellData (GmCellMesh *cellmesh, const QStringList &elementValues, const QList< Unit > &elementUnits)=0 |
Reads cell data from the file. Returns false on errors. | |
virtual bool | closeFiles ()=0 |
Closes the set of files opened by a call to openFiles(). Will be called automatically by the destructor (so may be called with a closed file). | |
virtual GmFileFormat * | fileFormat ()=0 |
Returns the file format of the deserializer. | |
Protected Attributes | |
const GmLogCategory & | _logger |
The logger used to report errors. | |
Basic interface for file deserializers.