GemaCoreLib
The GeMA Core library
Public Member Functions | Protected Attributes | List of all members
GmFileReader Class Referenceabstract

Basic interface for file deserializers. More...

#include <gmFileReader.h>

Inheritance diagram for GmFileReader:
Inheritance graph
[legend]
Collaboration diagram for GmFileReader:
Collaboration graph
[legend]

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 GmFileFormatfileFormat ()=0
 Returns the file format of the deserializer.
 

Protected Attributes

const GmLogCategory_logger
 The logger used to report errors.
 

Detailed Description

Basic interface for file deserializers.


The documentation for this class was generated from the following file: