Field3D
|
#include <FieldIO.h>
Public Types | |
typedef FieldIO | class_type |
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. | |
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 bool | write (hid_t layerGroup, FieldBase::Ptr field)=0 |
Write the field to the given layer group. | |
virtual | ~FieldIO () |
Dtor. | |
Static Public Member Functions | |
static const char * | classType () |
Public Attributes | |
DEFINE_FIELD_RTTI_ABSTRACT_CLASS | |
Private Types | |
typedef RefBase | base |
Convenience typedef for referring to base class. |
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, and SparseFieldIO.
typedef FieldIO FieldIO::class_type |
Reimplemented in DenseFieldIO, MACFieldIO, and SparseFieldIO.
typedef RefBase FieldIO::base [private] |
Convenience typedef for referring to base class.
Reimplemented in DenseFieldIO, MACFieldIO, and SparseFieldIO.
static const char* FieldIO::classType | ( | ) | [inline, static] |
Reimplemented from RefBase.
Reimplemented in DenseFieldIO, and MACFieldIO.
Definition at line 97 of file FieldIO.h.
{ return "FieldIO"; }
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, 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, 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, and SparseFieldIO.