Field3D
|
#include <FieldIO.h>
Public Types | |
typedef boost::intrusive_ptr < FieldIO > | Ptr |
typedef boost::intrusive_ptr < FieldIO > | Ptr |
Public Member Functions | |
virtual std::string | className () const =0 |
Returns the class name. This is used when registering the class to the FieldIOFactory object. | |
virtual std::string | className () const =0 |
Returns the class name. This is used when registering the class to the FieldIOFactory object. | |
FieldIO () | |
Ctor. | |
FieldIO () | |
Ctor. | |
virtual FieldBase::Ptr | read (hid_t layerGroup, const std::string &filename, const std::string &layerPath, DataTypeEnum typeEnum)=0 |
Read the field at the given hdf5 group. | |
virtual FieldBase::Ptr | read (hid_t layerGroup, const std::string &filename, const std::string &layerPath, DataTypeEnum typeEnum)=0 |
Read the field at the given hdf5 group. | |
virtual bool | write (hid_t layerGroup, FieldBase::Ptr field)=0 |
Write the field to the given layer group. | |
virtual bool | write (hid_t layerGroup, FieldBase::Ptr field)=0 |
Write the field to the given layer group. | |
virtual | ~FieldIO () |
Dtor. | |
virtual | ~FieldIO () |
Dtor. |
A creation class. The application needs to derive from this class for any new voxel field data structions. Within the read and write methods it is expected that the derived object knows how to read and write to an hdf5 file through the layerGroup id.
A creation class. The application needs to derive from this class for any new voxel field data structions. Within the read and write methods it is expected that the derived object knows how to read and write to an hdf5 file through the layerGroup id.
typedef boost::intrusive_ptr<FieldIO> FieldIO::Ptr |
Reimplemented from RefBase.
Reimplemented in DenseFieldIO, MACFieldIO, SparseFieldIO, DenseFieldIO, MACFieldIO, and SparseFieldIO.
typedef boost::intrusive_ptr<FieldIO> FieldIO::Ptr |
Reimplemented from RefBase.
Reimplemented in DenseFieldIO, MACFieldIO, SparseFieldIO, DenseFieldIO, MACFieldIO, and SparseFieldIO.
virtual FieldBase::Ptr FieldIO::read | ( | hid_t | layerGroup, |
const std::string & | filename, | ||
const std::string & | layerPath, | ||
DataTypeEnum | typeEnum | ||
) | [pure virtual] |
Read the field at the given hdf5 group.
Implemented in DenseFieldIO, MACFieldIO, SparseFieldIO, DenseFieldIO, MACFieldIO, and SparseFieldIO.
virtual bool FieldIO::write | ( | hid_t | layerGroup, |
FieldBase::Ptr | field | ||
) | [pure virtual] |
Write the field to the given layer group.
Implemented in DenseFieldIO, MACFieldIO, SparseFieldIO, DenseFieldIO, MACFieldIO, and SparseFieldIO.
virtual std::string FieldIO::className | ( | ) | const [pure virtual] |
Returns the class name. This is used when registering the class to the FieldIOFactory object.
Implemented in DenseFieldIO, MACFieldIO, SparseFieldIO, DenseFieldIO, MACFieldIO, and SparseFieldIO.
virtual FieldBase::Ptr FieldIO::read | ( | hid_t | layerGroup, |
const std::string & | filename, | ||
const std::string & | layerPath, | ||
DataTypeEnum | typeEnum | ||
) | [pure virtual] |
Read the field at the given hdf5 group.
Implemented in DenseFieldIO, MACFieldIO, SparseFieldIO, DenseFieldIO, MACFieldIO, and SparseFieldIO.
virtual bool FieldIO::write | ( | hid_t | layerGroup, |
FieldBase::Ptr | field | ||
) | [pure virtual] |
Write the field to the given layer group.
Implemented in DenseFieldIO, MACFieldIO, SparseFieldIO, DenseFieldIO, MACFieldIO, and SparseFieldIO.
virtual std::string FieldIO::className | ( | ) | const [pure virtual] |
Returns the class name. This is used when registering the class to the FieldIOFactory object.
Implemented in DenseFieldIO, MACFieldIO, SparseFieldIO, DenseFieldIO, MACFieldIO, and SparseFieldIO.