GridGroupReader¶
This page describes the class GridGroupReader
The class GridGroupReader
reads attributes and arrays from the grid group of a qdf file.
This file extends the attribute structure:
struct GridAttributes : Attributes {
stringmap smData;
};
- Code:
Public Methods¶
createGridGroupReader
¶
static GridGroupReader *createGridGroupReader(const std::string sFileName);
static GridGroupReader *createGridGroupReader(hid_t hFile);
Creates a GridGroupReader
object for a qdf file.
sFileName
Name of the file to read the grid from.
hFile
HDF5 handle for the file to read the grid from.
Returns a pointer to the GridGroupReader
object or NULL
on failure.
tryReadAttributes
¶
virtual int tryReadAttributes(GridAttributes *pAttributes);
Reads all attributes in the grid group into the attribute structure.
It first calls the parent class’ version of tryReadAttributes()
and then goes on loading the gtid specific data.
pAttributes
A pointer
GridAttributes
object to hold the attributes.
Returns 0 on success, -1 on failure.
readArray
¶
virtual int readArray(SCellGrid *pGroup, const std::string sArrayName)
For GridGroupReader
this method does nothing.
Returns 0.
readData
¶
virtual int readData(SCellGrid *pGroup);
Reads the CellDataSet
from the grid group of the qdf file into the GridGroupObject
.
pGroup
A Pointer to SCellGrid object.
Protected Methods¶
constructor
¶
GridGroupReader();
The constructor