Inherits IDataModelWriter.
Inheritance diagram for H5DataModelWriter:
Public Member Functions | |
H5DataModelWriter (IDataModel::Pointer dataModel, IDataFile::Pointer dataFile) | |
virtual | ~H5DataModelWriter () |
int32 | writeModelToFile (hid_t fileId) |
Writes the Data Model to the HDF5 file. | |
int32 | writeDataModelTemplate (hid_t uniqueId) |
Writes the Data Model skeleton groups. | |
int32 | writeDataDimensions (hid_t fileId) |
Writes the Data Dimensions from the Model. | |
int32 | writeDataRecords (hid_t fileId) |
Writes the Data Records. | |
int32 | writeRequiredMetaData (hid_t fileId) |
Writes the Required MetaData. | |
int32 | writeUserMetaData (hid_t fileId) |
Writes the User Meta Data. | |
int32 | writeSupportFiles (hid_t fileId) |
Writes the support files to the hdf5 data file. | |
Protected Member Functions | |
int32 | _traverseDataRecords (hid_t gid, IDataRecord::Container &records) |
Walks the Data records hierarchy. | |
herr_t | _writeStringDataset (hid_t loc_id, const std::string &dsetName, const std::string &data, bool overwrite=false) |
Writes a std::string as a HDF Dataset. | |
Static Protected Member Functions | |
template<typename T> | |
static herr_t | _writeScalarDataset (hid_t loc_id, const std::string &dsetName, T &value) |
Creates a Dataset with the given name at the location defined by loc_id. This version of writeDataset should be used with a single scalar value. If you need to write an array of values, use the form that takes an std::vector<>. | |
Private Member Functions | |
H5DataModelWriter (const H5DataModelWriter &) | |
void | operator= (const H5DataModelWriter &) |
Private Attributes | |
IDataModel::Pointer | _dataModel |
IDataFile::Pointer | _dataFile |
H5DataModelWriter::H5DataModelWriter | ( | IDataModel::Pointer | dataModel, | |
IDataFile::Pointer | dataFile | |||
) |
H5DataModelWriter::~H5DataModelWriter | ( | ) | [virtual] |
H5DataModelWriter::H5DataModelWriter | ( | const H5DataModelWriter & | ) | [private] |
int32 H5DataModelWriter::writeModelToFile | ( | hid_t | fileId | ) |
Writes the Data Model to the HDF5 file.
fileId | HDF5 FileId to write to |
int32 H5DataModelWriter::writeDataModelTemplate | ( | hid_t | uniqueId | ) |
Writes the Data Model skeleton groups.
uniqueId | HDF5 FileId to write to |
int32 H5DataModelWriter::writeDataDimensions | ( | hid_t | fileId | ) |
Writes the Data Dimensions from the Model.
fileId | HDF5 FileId to write to |
int32 H5DataModelWriter::writeDataRecords | ( | hid_t | fileId | ) |
Writes the Data Records.
fileId | HDF5 FileId to write to |
int32 H5DataModelWriter::writeRequiredMetaData | ( | hid_t | fileId | ) |
Writes the Required MetaData.
fileId | HDF5 FileId to write to |
int32 H5DataModelWriter::writeUserMetaData | ( | hid_t | fileId | ) |
Writes the User Meta Data.
fileId | HDF5 FileId to write to |
int32 H5DataModelWriter::writeSupportFiles | ( | hid_t | fileId | ) |
Writes the support files to the hdf5 data file.
fileId | HDF5 file id to write to |
int32 H5DataModelWriter::_traverseDataRecords | ( | hid_t | gid, | |
IDataRecord::Container & | records | |||
) | [protected] |
Walks the Data records hierarchy.
gid | ||
records |
herr_t H5DataModelWriter::_writeStringDataset | ( | hid_t | loc_id, | |
const std::string & | dsetName, | |||
const std::string & | data, | |||
bool | overwrite = false | |||
) | [protected] |
Writes a std::string as a HDF Dataset.
loc_id | The Parent location to write the dataset | |
dsetName | The Name to use for the dataset | |
data | The actual data to write as a null terminated string | |
overwrite | Overwrite the existing data |
static herr_t H5DataModelWriter::_writeScalarDataset | ( | hid_t | loc_id, | |
const std::string & | dsetName, | |||
T & | value | |||
) | [inline, static, protected] |
Creates a Dataset with the given name at the location defined by loc_id. This version of writeDataset should be used with a single scalar value. If you need to write an array of values, use the form that takes an std::vector<>.
loc_id | The Parent location to store the data | |
dsetName | The name of the dataset | |
value | The value to write to the HDF5 dataset |
void H5DataModelWriter::operator= | ( | const H5DataModelWriter & | ) | [private] |
IDataModel::Pointer H5DataModelWriter::_dataModel [private] |
IDataFile::Pointer H5DataModelWriter::_dataFile [private] |