Field3D
|
Contains the Field3DFile classesOSS sanitized. More...
#include <list>
#include <string>
#include <vector>
#include <hdf5.h>
#include <boost/intrusive_ptr.hpp>
#include "EmptyField.h"
#include "Field.h"
#include "FieldMetadata.h"
#include "ClassFactory.h"
#include "Hdf5Util.h"
#include "FieldCache.h"
#include "ns.h"
Go to the source code of this file.
Classes | |
class | Field3DFileBase |
struct | Field3DFileBase::LayerInfo |
class | Field3DInputFile |
Provides reading of .f3d (internally, hdf5) files.Refer to using_files for examples of how to use this in your code. More... | |
class | Field3DOutputFile |
Provides writing of .f3d (internally, hdf5) files. More... | |
class | File::Layer |
class | File::Partition |
struct | InputFile::ParseLayersInfo |
struct used to pass the class and partition info back to the parseLayers() callback More... | |
Namespaces | |
File | |
Namespace for file I/O specifics. | |
InputFile | |
Namespace for file input specifics. | |
Functions | |
bool | fileExists (const std::string &filename) |
checks to see if a file/directory exists or not More... | |
FIELD3D_API herr_t | InputFile::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 | InputFile::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... | |
classFactory IO functions | |
template<class Data_T > | |
Field< Data_T >::Ptr | readField (const std::string &className, hid_t layerGroup, const std::string &filename, const std::string &layerPath) |
This function creates a FieldIO instance based on className which then reads the field data from layerGroup location. More... | |
FIELD3D_API 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... | |
FIELD3D_API 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... | |
FIELD3D_API 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... | |
Field< Data_T >::Ptr readField | ( | const std::string & | className, |
hid_t | layerGroup, | ||
const std::string & | filename, | ||
const std::string & | layerPath | ||
) |
This function creates a FieldIO instance based on className which then reads the field data from layerGroup location.
Definition at line 1641 of file Field3DFile.h.
References ClassFactory::createFieldIO(), FIELD3D_NAMESPACE_HEADER_CLOSE, field_dynamic_cast(), Msg::print(), Msg::SevWarning, ClassFactory::singleton(), and DataTypeTraits< T >::typeEnum().
FIELD3D_API 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 1585 of file Field3DFile.cpp.
References ClassFactory::createFieldIO(), Msg::print(), Msg::SevWarning, ClassFactory::singleton(), and Hdf5Util::writeAttribute().
Referenced by Field3DOutputFile::writeLayer().
FIELD3D_API 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 1609 of file Field3DFile.cpp.
References ClassFactory::createFieldMappingIO(), Msg::print(), Hdf5Util::readAttribute(), Msg::SevWarning, and ClassFactory::singleton().
Referenced by Field3DInputFile::readPartitionAndLayerInfo().
FIELD3D_API 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 1641 of file Field3DFile.cpp.
References ClassFactory::createFieldMappingIO(), FIELD3D_NAMESPACE_SOURCE_CLOSE, Msg::print(), Msg::SevWarning, ClassFactory::singleton(), and Hdf5Util::writeAttribute().
Referenced by Field3DOutputFile::writeMapping().
bool fileExists | ( | const std::string & | filename | ) |
checks to see if a file/directory exists or not
[in] | filename | the file/directory to check |
true | if it exists |
false | if it does not exist |
Definition at line 1572 of file Field3DFile.cpp.
Referenced by FileSequence::FileSequence().