#include <FileSetReader.h>
Classes | |
struct | OffsetData |
Public Types | |
typedef Interval< Dim > | Domain_t |
typedef POOMA_INT64 | Offset_t |
Public Member Functions | |
FileSetReader (const char *filesetname) | |
~FileSetReader () | |
bool | open (bool abortOnError=false) |
template<class T , class ETag > | |
bool | read (Array< Dim, T, ETag > &a) |
template<class Mesh , class T , class ETag > | |
bool | read (Field< Mesh, T, ETag > &f) |
const Domain_t & | domain () const |
const DiskLayout< Dim > & | diskLayout () const |
int | nextRecord () const |
int | nextField () const |
std::string | errorMessage () const |
bool | bytesReversed () const |
const DiskMeta * | diskMeta () const |
It uses a DiskMeta object to read the fileset's .meta file and a DiskLayout object to read the .layout file. It then reads the .offset and .data files to extract the data for each field.
NOTE: We do not currently provide random access to the fields within a record, as r1 did. Rather, reading an Array just advances the field counter until fieldsPerRecord is hit, and then it advances the record counter. Reading a Field assumes that there is enough room remaining in the record to get all the "sub-Fields" - i.e. a Pooma Field can't span multiple records.
typedef Interval<Dim> FileSetReader< Dim >::Domain_t |
typedef POOMA_INT64 FileSetReader< Dim >::Offset_t |
FileSetReader< Dim >::FileSetReader | ( | const char * | filesetname | ) |
FileSetReader< Dim >::~FileSetReader | ( | ) |
bool FileSetReader< Dim >::open | ( | bool | abortOnError = false |
) |
bool FileSetReader< Dim >::read | ( | Array< Dim, T, ETag > & | a | ) | [inline] |
bool FileSetReader< Dim >::read | ( | Field< Mesh, T, ETag > & | f | ) | [inline] |
const Domain_t& FileSetReader< Dim >::domain | ( | ) | const [inline] |
const DiskLayout<Dim>& FileSetReader< Dim >::diskLayout | ( | ) | const [inline] |
int FileSetReader< Dim >::nextRecord | ( | ) | const [inline] |
int FileSetReader< Dim >::nextField | ( | ) | const [inline] |
std::string FileSetReader< Dim >::errorMessage | ( | ) | const [inline] |
bool FileSetReader< Dim >::bytesReversed | ( | ) | const [inline] |
const DiskMeta* FileSetReader< Dim >::diskMeta | ( | ) | const [inline] |