Field3D
|
#include <MACFieldIO.h>
Public Types | |
typedef MACFieldIO | class_type |
typedef boost::intrusive_ptr < MACFieldIO > | Ptr |
![]() | |
![]() |
Public Member Functions | |
virtual std::string | className () const |
Returns the class name. | |
MACFieldIO () | |
Ctor. | |
virtual FieldBase::Ptr | read (hid_t layerGroup, const std::string &filename, const std::string &layerPath, DataTypeEnum typeEnum) |
Reads the field at the given location and tries to create a MACField object from it. | |
virtual bool | write (hid_t layerGroup, FieldBase::Ptr field) |
Writes the given field to disk. | |
virtual | ~MACFieldIO () |
Dtor. | |
![]() | |
FieldIO () | |
Ctor. | |
virtual | ~FieldIO () |
Dtor. | |
![]() | |
void | ref () const |
Used by boost::intrusive_pointer. | |
size_t | refcnt () |
Used by boost::intrusive_pointer. | |
void | unref () const |
Used by boost::intrusive_pointer. | |
RefBase () | |
RefBase (const RefBase &) | |
Copy constructor. | |
RefBase & | operator= (const RefBase &) |
Assignment operator. | |
virtual | ~RefBase () |
Destructor. | |
virtual bool | checkRTTI (const char *typenameStr)=0 |
This function is only implemented by concrete classes and triggers the actual RTTI check through matchRTTI();. | |
bool | matchRTTI (const char *typenameStr) |
Performs a check to see if the given typename string matches this class' This needs to be implemented in -all- subclasses, even abstract ones. |
Static Public Member Functions | |
static const char * | classType () |
static FieldIO::Ptr | create () |
Public Attributes | |
DEFINE_FIELD_RTTI_CONCRETE_CLASS | |
![]() | |
DEFINE_FIELD_RTTI_ABSTRACT_CLASS |
Private Types | |
typedef FieldIO | base |
Convenience typedef for referring to base class. |
Private Member Functions | |
template<class Data_T > | |
bool | readData (hid_t location, typename MACField< Data_T >::Ptr result) |
Reads the data that is dependent on the data type on disk. | |
template<class Data_T > | |
bool | writeData (hid_t layerGroup, typename MACField< Data_T >::Ptr field, MACComponent comp) |
This call writes out the u,v,w data. | |
template<class Data_T > | |
bool | writeInternal (hid_t layerGroup, typename MACField< Data_T >::Ptr field) |
This call writes all the attributes and sets up the data space. |
Static Private Attributes | |
static const std::string | k_bitsPerComponentStr |
static const std::string | k_componentsStr |
static const std::string | k_dataWindowStr |
static const std::string | k_extentsStr |
static const std::string | k_uDataStr |
static const std::string | k_vDataStr |
static const std::string | k_versionAttrName |
static const int | k_versionNumber |
static const std::string | k_wDataStr |
Defines the IO for a MACField object
Definition at line 78 of file MACFieldIO.h.
typedef boost::intrusive_ptr<MACFieldIO> MACFieldIO::Ptr |
Reimplemented from FieldIO.
Definition at line 85 of file MACFieldIO.h.
typedef MACFieldIO MACFieldIO::class_type |
Reimplemented from FieldIO.
Definition at line 89 of file MACFieldIO.h.
|
private |
Convenience typedef for referring to base class.
Reimplemented from FieldIO.
Definition at line 160 of file MACFieldIO.h.
|
inline |
|
inlinevirtual |
|
inlinestatic |
|
inlinestatic |
|
virtual |
Reads the field at the given location and tries to create a MACField object from it.
Implements FieldIO.
Definition at line 79 of file MACFieldIO.cpp.
References DataTypeVecDouble, DataTypeVecFloat, DataTypeVecHalf, Hdf5Util::readAttribute(), and ResizableField< Data_T >::setSize().
|
virtual |
Writes the given field to disk.
Implements FieldIO.
Definition at line 158 of file MACFieldIO.cpp.
References field_dynamic_cast(), and Hdf5Util::writeAttribute().
|
inlinevirtual |
Returns the class name.
Implements FieldIO.
Definition at line 125 of file MACFieldIO.h.
|
private |
This call writes all the attributes and sets up the data space.
Definition at line 169 of file MACFieldIO.h.
References FieldRes::dataWindow(), FieldRes::extents(), MACField< Data_T >::getComponentSize(), k_bitsPerComponentStr, k_componentsStr, k_dataWindowStr, k_extentsStr, MACCompU, MACCompV, MACCompW, and Hdf5Util::writeAttribute().
|
private |
This call writes out the u,v,w data.
Definition at line 233 of file MACFieldIO.h.
References MACField< Data_T >::cbegin_comp(), Hdf5Util::checkHdf5Gzip(), MACField< Data_T >::getComponentSize(), Hdf5Util::H5Base::id(), k_uDataStr, k_vDataStr, k_wDataStr, MACCompU, MACCompV, and MACCompW.
|
private |
Reads the data that is dependent on the data type on disk.
Definition at line 314 of file MACFieldIO.h.
References MACField< Data_T >::begin_comp(), Hdf5Util::H5Base::id(), k_uDataStr, k_vDataStr, k_wDataStr, MACCompU, MACCompV, and MACCompW.
MACFieldIO::DEFINE_FIELD_RTTI_CONCRETE_CLASS |
Definition at line 90 of file MACFieldIO.h.
|
staticprivate |
Definition at line 147 of file MACFieldIO.h.
|
staticprivate |
Definition at line 148 of file MACFieldIO.h.
|
staticprivate |
Definition at line 149 of file MACFieldIO.h.
Referenced by writeInternal().
|
staticprivate |
Definition at line 150 of file MACFieldIO.h.
Referenced by writeInternal().
|
staticprivate |
Definition at line 151 of file MACFieldIO.h.
Referenced by writeInternal().
|
staticprivate |
Definition at line 152 of file MACFieldIO.h.
Referenced by writeInternal().
|
staticprivate |
Definition at line 153 of file MACFieldIO.h.
Referenced by readData(), and writeData().
|
staticprivate |
Definition at line 154 of file MACFieldIO.h.
Referenced by readData(), and writeData().
|
staticprivate |
Definition at line 155 of file MACFieldIO.h.
Referenced by readData(), and writeData().