Field3D
|
#include <MACFieldIO.h>
Public Types | |
typedef MACFieldIO | class_type |
typedef boost::intrusive_ptr< MACFieldIO > | Ptr |
![]() | |
typedef FieldIO | class_type |
typedef boost::intrusive_ptr< FieldIO > | Ptr |
![]() | |
typedef boost::intrusive_ptr< RefBase > | Ptr |
typedef boost::weak_ptr< RefBase > | WeakPtr |
Public Member Functions | |
virtual std::string | className () const |
Returns the class name. More... | |
MACFieldIO () | |
Ctor. More... | |
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. More... | |
virtual bool | write (hid_t layerGroup, FieldBase::Ptr field) |
Writes the given field to disk. More... | |
virtual | ~MACFieldIO () |
Dtor. More... | |
![]() | |
FieldIO () | |
Ctor. More... | |
virtual | ~FieldIO () |
Dtor. More... | |
![]() | |
void | ref () const |
Used by boost::intrusive_pointer. More... | |
size_t | refcnt () |
Used by boost::intrusive_pointer. More... | |
void | unref () const |
Used by boost::intrusive_pointer. More... | |
WeakPtr | weakPtr () const |
RefBase () | |
RefBase (const RefBase &) | |
Copy constructor. More... | |
RefBase & | operator= (const RefBase &) |
Assignment operator. More... | |
virtual | ~RefBase () |
Destructor. More... | |
virtual bool | checkRTTI (const char *typenameStr)=0 |
This function is only implemented by concrete classes and triggers the actual RTTI check through matchRTTI();. More... | |
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. More... | |
Static Public Member Functions | |
static FieldIO::Ptr | create () |
static const char * | staticClassType () |
![]() | |
static const char * | staticClassType () |
![]() | |
static const char * | staticClassType () |
Public Attributes | |
DEFINE_FIELD_RTTI_CONCRETE_CLASS | |
![]() | |
DEFINE_FIELD_RTTI_ABSTRACT_CLASS | |
Private Types | |
typedef FieldIO | base |
Convenience typedef for referring to base class. More... | |
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. More... | |
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. More... | |
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. More... | |
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 |
Definition at line 85 of file MACFieldIO.h.
typedef MACFieldIO MACFieldIO::class_type |
Definition at line 89 of file MACFieldIO.h.
|
private |
Convenience typedef for referring to base class.
Definition at line 160 of file MACFieldIO.h.
|
inline |
Ctor.
Definition at line 100 of file MACFieldIO.h.
|
inlinevirtual |
|
inlinestatic |
Definition at line 92 of file MACFieldIO.h.
|
inlinestatic |
Definition at line 108 of file MACFieldIO.h.
References read(), and write().
Referenced by initIO().
|
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().
Referenced by create().
|
virtual |
Writes the given field to disk.
Implements FieldIO.
Definition at line 158 of file MACFieldIO.cpp.
References FIELD3D_NAMESPACE_SOURCE_CLOSE, field_dynamic_cast(), and Hdf5Util::writeAttribute().
Referenced by create().
|
inlinevirtual |
Returns the class name.
Implements FieldIO.
Definition at line 125 of file MACFieldIO.h.
References readData(), writeData(), and writeInternal().
|
private |
This call writes all the attributes and sets up the data space.
Definition at line 169 of file MACFieldIO.h.
References FieldTraits< Data_T >::dataDims(), FieldRes::dataWindow(), FieldRes::extents(), DataTypeTraits< T >::h5bits(), k_bitsPerComponentStr, k_componentsStr, k_dataWindowStr, k_extentsStr, MACCompU, MACCompV, MACCompW, and Hdf5Util::writeAttribute().
Referenced by className().
|
private |
This call writes out the u,v,w data.
Definition at line 228 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.
Referenced by className().
|
private |
Reads the data that is dependent on the data type on disk.
Definition at line 309 of file MACFieldIO.h.
References MACField< Data_T >::begin_comp(), FIELD3D_NAMESPACE_HEADER_CLOSE, Hdf5Util::H5Base::id(), k_uDataStr, k_vDataStr, k_wDataStr, MACCompU, MACCompV, MACCompW, and DataTypeTraits< T >::name().
Referenced by className().
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().