32 void Hdf5Format::PreConvert(
const string& target_path, shared_ptr<MergedPreferences>)
34 m_file.Open(target_path +
'.' + GetExtension());
35 if (!m_file.IsOpen()) {
36 throw Exception(
"Couln't open or create HDF5 file " + target_path);
40 void Hdf5Format::Convert(
const SimState& s)
42 auto sim = make_shared<SimPT_Sim::Sim>();
47 catch (runtime_error &e) {
50 +
" to " + m_file.GetFilePath() +
":\n" + e.what());
54 void Hdf5Format::PostConvert()
Namespace for SimPT shell package.
Wrapper around workspace to have read and write access to merged (workspace + project) preferences...
Extremely simple Exception root class.
Namespace for the core simulator.
Interface for VirtualLeaf::Hdf5File.
Contains the state of the whole Simulator at a given simulation step.
Header file for Exception class.
int GetTimeStep() const
Returns the index of the current time step.
Interface of File Converter Formats.