Field3D
|
Contains implementations of Field3DFileHDF5-related member functions. More...
#include <sys/stat.h>
#include <unistd.h>
#include <hdf5.h>
#include <H5Epublic.h>
#include <boost/tokenizer.hpp>
#include <boost/utility.hpp>
#include "Field3DFileHDF5.h"
#include "Field.h"
#include "ClassFactory.h"
Go to the source code of this file.
Namespaces | |
InputFileHDF5 | |
Namespace for file input specifics. | |
Functions | |
FIELD3D_API herr_t | InputFileHDF5::parseLayers (hid_t loc_id, const char *partitionName, const H5L_info_t *linfo, void *opdata) |
Gets called from readPartitionAndLayerInfo to check each group found under the root of the file. It checks to see if it can find a "partition" and then passes that to writePartition. More... | |
FIELD3D_API herr_t | InputFileHDF5::parsePartitions (hid_t loc_id, const char *partitionName, const H5L_info_t *linfo, void *opdata) |
Gets called from readPartitionAndLayerInfo to check each group found under the root of the file. It checks to see if it can find a "partition" and then passes that to writePartition. More... | |
FieldMapping::Ptr | readFieldMapping (hid_t mappingGroup) |
This function creates a FieldMappingIO instance based on className read from mappingGroup location which then reads FieldMapping data. More... | |
bool | writeField (hid_t layerGroup, FieldBase::Ptr field) |
This function creates a FieldIO instance based on field->className() which then writes the field data in layerGroup location. More... | |
bool | writeFieldMapping (hid_t mappingGroup, FieldMapping::Ptr mapping) |
This function creates a FieldMappingIO instance based on mapping->className() which then writes FieldMapping data to mappingGroup location. More... | |
Contains implementations of Field3DFileHDF5-related member functions.
Definition in file Field3DFileHDF5.cpp.
bool writeField | ( | hid_t | layerGroup, |
FieldBase::Ptr | field | ||
) |
This function creates a FieldIO instance based on field->className() which then writes the field data in layerGroup location.
Definition at line 1589 of file Field3DFileHDF5.cpp.
References ClassFactory::createFieldIO(), Msg::print(), Msg::SevWarning, ClassFactory::singleton(), and Hdf5Util::writeAttribute().
Referenced by Field3DOutputFileHDF5::writeLayer(), and Field3DOutputFile::writeLayer().
FieldMapping::Ptr readFieldMapping | ( | hid_t | mappingGroup | ) |
This function creates a FieldMappingIO instance based on className read from mappingGroup location which then reads FieldMapping data.
Definition at line 1613 of file Field3DFileHDF5.cpp.
References ClassFactory::createFieldMappingIO(), Msg::print(), Hdf5Util::readAttribute(), Msg::SevWarning, and ClassFactory::singleton().
Referenced by Field3DInputFile::readPartitionAndLayerInfo(), and Field3DInputFileHDF5::readPartitionAndLayerInfo().
bool writeFieldMapping | ( | hid_t | mappingGroup, |
FieldMapping::Ptr | mapping | ||
) |
This function creates a FieldMappingIO instance based on mapping->className() which then writes FieldMapping data to mappingGroup location.
Definition at line 1645 of file Field3DFileHDF5.cpp.
References ClassFactory::createFieldMappingIO(), Msg::print(), Msg::SevWarning, ClassFactory::singleton(), and Hdf5Util::writeAttribute().
Referenced by Field3DOutputFileHDF5::writeMapping().