20 #include "../../cpp_simptshell/exporters/Hdf5Exporter.h"
34 if (!overwrite && ifstream(file_path).good()) {
42 status = file.
Close();
Simulator: mesh & parameters, model & algorithms.
void Write(std::shared_ptr< const SimPT_Sim::Sim > sim)
Writes the mesh state to the HDF5 file currently associated with exporter object. ...
Namespace for SimPT shell package.
static bool Export(std::shared_ptr< SimPT_Sim::Sim > mesh, std::string const &file_path, bool overwrite=true)
Export mesh state to hdf5 format.
Interface for VirtualLeaf::Hdf5File.
Contains facilities for storing the simulation Mesh to HDF5 files.
bool IsOpen()
Returns true if exporter is associated with a HDF5 file that has been successfully opened...
Sim, the actual simulator.
bool Close()
Closes the HDF5 file associated with exporter, dissociates it from this exporter object and returns t...
static std::string GetFileExtension()
File extension associated with this export format.