FreePOOMA
2.4.1
|
DiskMeta - reads in information in an r1 "DiscField" meta file, which is a file in the format. More...
#include <DiskMeta.h>
Public Member Functions | |
DiskMeta (const char *basename) | |
~DiskMeta () | |
bool | open (bool abortOnError=false) |
bool | read (bool abortOnError=false) |
const std::string & | filename () const |
const std::string & | type () const |
int | dimension () const |
const Interval< 1 > & | domain (int d) const |
int | fieldsPerRecord () const |
int | numRecords () const |
int | numFileSets () const |
const std::vector< int > & | patchesPerRecord () const |
const std::vector< int > & | patchTally () const |
std::string | errorMessage () const |
DiskMeta - reads in information in an r1 "DiscField" meta file, which is a file in the format.
# comment line keyword [=] value keyword [=] value ...
An optional = may separate the single-word keyword and the value. This class parses the file, storing the state, and allowing access to that state via the various accessors.
NOTE: The DiskMeta class is only useful on an "IO Context". The mutators check and are protected so that they'll only run on an IO context, but the accessors are not.
DiskMeta::DiskMeta | ( | const char * | basename | ) |
bool DiskMeta::open | ( | bool | abortOnError = false | ) |
bool DiskMeta::read | ( | bool | abortOnError = false | ) |
const std::string& DiskMeta::filename | ( | ) | const [inline] |
const std::string& DiskMeta::type | ( | ) | const [inline] |
int DiskMeta::dimension | ( | ) | const [inline] |
const Interval<1>& DiskMeta::domain | ( | int | d | ) | const |
int DiskMeta::fieldsPerRecord | ( | ) | const [inline] |
int DiskMeta::numRecords | ( | ) | const [inline] |
int DiskMeta::numFileSets | ( | ) | const [inline] |
const std::vector<int>& DiskMeta::patchesPerRecord | ( | ) | const [inline] |
const std::vector<int>& DiskMeta::patchTally | ( | ) | const [inline] |
std::string DiskMeta::errorMessage | ( | ) | const [inline] |