Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Commit 7fd5fa4

Browse files
committed
Reading and writing of HDF5 files re-introduced.
Removed template for FieldMetadata. Uses plain virtual callback member function instead. Field3DOutputFile now has useOgawa() option to fall back to plain HDF5 files. Field3DInputFile will now call out to Field3DInputFileHDF5 to support both formats. Cleaned up the public interface of Field3D{In,Out}putFile.
1 parent 22c9729 commit 7fd5fa4

File tree

8 files changed

+536
-303
lines changed

8 files changed

+536
-303
lines changed

export/Field.h

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ DECLARE_FIELD3D_GENERIC_EXCEPTION(ResizeException, Exception)
8888
for the metadata map
8989
*/
9090

91-
class FIELD3D_API FieldBase : public RefBase
91+
class FIELD3D_API FieldBase : public RefBase, public MetadataCallback
9292
{
9393
public:
9494

@@ -152,18 +152,13 @@ class FIELD3D_API FieldBase : public RefBase
152152
//! \{
153153

154154
//! accessor to the m_metadata class
155-
FieldMetadata<FieldBase>& metadata()
155+
FieldMetadata& metadata()
156156
{ return m_metadata; }
157157

158158
//! Read only access to the m_metadata class
159-
const FieldMetadata<FieldBase>& metadata() const
159+
const FieldMetadata& metadata() const
160160
{ return m_metadata; }
161161

162-
//! This function should implemented by concrete classes to
163-
//! get the callback when metadata changes
164-
virtual void metadataHasChanged(const std::string &/* name */)
165-
{ /* Empty */ }
166-
167162
//! Copies the metadata from a second field
168163
void copyMetadata(const FieldBase &field)
169164
{ m_metadata = field.metadata(); }
@@ -182,7 +177,7 @@ class FIELD3D_API FieldBase : public RefBase
182177
// Private data members ------------------------------------------------------
183178

184179
//! metadata
185-
FieldMetadata<FieldBase> m_metadata;
180+
FieldMetadata m_metadata;
186181

187182
};
188183

0 commit comments

Comments
 (0)