Commit 9f8ec64d authored by Michael Bareford's avatar Michael Bareford

Added H5::File::Flush method.

parent a26ef97d
...@@ -633,6 +633,10 @@ hsize_t File::GetNumElements() ...@@ -633,6 +633,10 @@ hsize_t File::GetNumElements()
GroupSharedPtr root = OpenGroup("/"); GroupSharedPtr root = OpenGroup("/");
return root->GetNumElements(); return root->GetNumElements();
} }
void File::Flush()
{
H5_CALL(H5Fflush, (m_Id, H5F_SCOPE_GLOBAL));
}
Group::Group(hid_t id) : Object(id) Group::Group(hid_t id) : Object(id)
{ {
} }
......
...@@ -463,6 +463,7 @@ public: ...@@ -463,6 +463,7 @@ public:
~File(); ~File();
void Close(); void Close();
virtual hsize_t GetNumElements(); virtual hsize_t GetNumElements();
void Flush();
private: private:
File(hid_t id); File(hid_t id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment