Field3D
|
#include <MIPFieldIO.h>
Public Types | |
typedef MIPFieldIO | class_type |
typedef boost::intrusive_ptr< MIPFieldIO > | 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... | |
MIPFieldIO () | |
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 MIPField object from it. Calls out to readData() for template-specific work. More... | |
virtual bool | write (hid_t layerGroup, FieldBase::Ptr field) |
Writes the given field to disk. This function calls out to writeInternal once the template type has been determined. More... | |
virtual | ~MIPFieldIO () |
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<template< typename X > class Field_T, class Data_T > | |
MIPField< Field_T< Data_T > >::Ptr | readInternal (hid_t layerGroup, const std::string &filename, const std::string &layerPath, DataTypeEnum typeEnum) |
template<template< typename X > class Field_T, class Data_T > | |
bool | writeInternal (hid_t layerGroup, typename MIPField< Field_T< 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_baseTypeStr |
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_levelGroupStr |
static const std::string | k_levelsStr |
static const std::string | k_mipGroupStr |
static const std::string | k_versionAttrName |
static const int | k_versionNumber |
Handles IO for a MIPField object
Definition at line 78 of file MIPFieldIO.h.
typedef boost::intrusive_ptr<MIPFieldIO> MIPFieldIO::Ptr |
Definition at line 85 of file MIPFieldIO.h.
typedef MIPFieldIO MIPFieldIO::class_type |
Definition at line 89 of file MIPFieldIO.h.
|
private |
Convenience typedef for referring to base class.
Definition at line 160 of file MIPFieldIO.h.
|
inline |
Ctor.
Definition at line 100 of file MIPFieldIO.h.
|
inlinevirtual |
|
inlinestatic |
Definition at line 92 of file MIPFieldIO.h.
|
inlinestatic |
Definition at line 108 of file MIPFieldIO.h.
References read(), and write().
Referenced by initIO().
|
virtual |
Reads the field at the given location and tries to create a MIPField object from it. Calls out to readData() for template-specific work.
Implements FieldIO.
Definition at line 82 of file MIPFieldIO.cpp.
References DataTypeDouble, DataTypeFloat, DataTypeHalf, DataTypeVecDouble, DataTypeVecFloat, DataTypeVecHalf, and Hdf5Util::readAttribute().
Referenced by create().
|
virtual |
Writes the given field to disk. This function calls out to writeInternal once the template type has been determined.
Implements FieldIO.
Definition at line 190 of file MIPFieldIO.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 127 of file MIPFieldIO.h.
References readInternal(), and writeInternal().
Referenced by writeInternal().
|
private |
This call writes all the attributes and sets up the data space.
Definition at line 281 of file MIPFieldIO.h.
References className(), ClassFactory::createFieldIO(), FieldTraits< Data_T >::dataDims(), DataTypeTraits< T >::h5bits(), k_baseTypeStr, k_bitsPerComponentStr, k_componentsStr, k_dataWindowStr, k_extentsStr, k_levelGroupStr, k_levelsStr, k_mipGroupStr, Msg::print(), Msg::SevWarning, ClassFactory::singleton(), and Hdf5Util::writeAttribute().
Referenced by className().
|
private |
Definition at line 363 of file MIPFieldIO.h.
References FIELD3D_NAMESPACE_HEADER_CLOSE, k_componentsStr, k_dataWindowStr, k_extentsStr, k_levelGroupStr, k_levelsStr, k_mipGroupStr, Hdf5Util::readAttribute(), and ResizableField< Data_T >::setSize().
Referenced by className().
MIPFieldIO::DEFINE_FIELD_RTTI_CONCRETE_CLASS |
Definition at line 90 of file MIPFieldIO.h.
|
staticprivate |
Definition at line 146 of file MIPFieldIO.h.
|
staticprivate |
Definition at line 147 of file MIPFieldIO.h.
|
staticprivate |
Definition at line 148 of file MIPFieldIO.h.
Referenced by readInternal(), and writeInternal().
|
staticprivate |
Definition at line 149 of file MIPFieldIO.h.
Referenced by readInternal(), and writeInternal().
|
staticprivate |
Definition at line 150 of file MIPFieldIO.h.
Referenced by readInternal(), and writeInternal().
|
staticprivate |
Definition at line 151 of file MIPFieldIO.h.
Referenced by writeInternal().
|
staticprivate |
Definition at line 152 of file MIPFieldIO.h.
Referenced by readInternal(), and writeInternal().
|
staticprivate |
Definition at line 153 of file MIPFieldIO.h.
Referenced by readInternal(), and writeInternal().
|
staticprivate |
Definition at line 154 of file MIPFieldIO.h.
Referenced by readInternal(), and writeInternal().
|
staticprivate |
Definition at line 155 of file MIPFieldIO.h.
Referenced by writeInternal().