diff options
Diffstat (limited to 'CarpetDev/CarpetIOF5/src/data_region.hh')
-rw-r--r-- | CarpetDev/CarpetIOF5/src/data_region.hh | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/CarpetDev/CarpetIOF5/src/data_region.hh b/CarpetDev/CarpetIOF5/src/data_region.hh new file mode 100644 index 000000000..f7c1713cc --- /dev/null +++ b/CarpetDev/CarpetIOF5/src/data_region.hh @@ -0,0 +1,50 @@ +#ifndef DATA_REGION_HH +#define DATA_REGION_HH + +#include <hdf5.h> + +#include "bbox.hh" +#include "defs.hh" + +#include "tensor_component.hh" + + + +namespace CarpetIOF5 { + + namespace F5 { + + class data_region_t { + + tensor_component_t & m_tensor_component; + + bbox<int, dim> const m_region; + + hid_t m_properties; + hid_t m_dataset; + hid_t m_dataspace; + + public: + + data_region_t (tensor_component_t & tensor_component, + bbox<int, dim> const & region); + + virtual + ~ data_region_t (); + + template<typename T> + void + write (T const * data) + const; + + virtual bool + invariant () + const; + + }; + + } // namespace F5 + +} // namespace CarpetIOF5 + +#endif // #ifndef DATA_REGION_HH |