VPTissue Reference Manual
Hdf5Format.h
Go to the documentation of this file.
1 #ifndef SIMPT_SHELL_CONVERTER_HDF5_FORMAT_H_INCLUDED
2 #define SIMPT_SHELL_CONVERTER_HDF5_FORMAT_H_INCLUDED
3 /*
4  * Copyright 2011-2016 Universiteit Antwerpen
5  *
6  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
7  * the European Commission - subsequent versions of the EUPL (the "Licence");
8  * You may not use this work except in compliance with the Licence.
9  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the Licence is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the Licence for the specific language governing
15  * permissions and limitations under the Licence.
16  */
23 #include "sim/Sim.h"
24 #include "fileformats/Hdf5File.h"
25 
26 namespace SimPT_Shell {
27 
32 {
33 public:
34  virtual bool AppendTimeStepSuffix() const { return false; };
35 
36  virtual bool IsPostProcessFormat() const { return false; }
37 
38  virtual std::string GetExtension() const
39  {
40  return "h5";
41  }
42 
43  virtual std::string GetName() const
44  {
45  return "HDF5";
46  }
47 
48  virtual void PreConvert(const std::string& target_path,
49  std::shared_ptr<SimShell::Ws::MergedPreferences> p);
50 
51  virtual void Convert(const SimPT_Sim::SimState& src);
52 
53  virtual void PostConvert();
54 
55 private:
56  Hdf5File m_file;
57 };
58 
59 } // namespace
60 
61 #endif // end_of_include_guard
Hdf5 converter format specifications.
Definition: Hdf5Format.h:31
Namespace for SimPT shell package.
Definition: Client.cpp:50
Interface for VirtualLeaf::Hdf5File.
Contains facilities for storing the simulation Mesh to HDF5 files.
Definition: Hdf5File.h:38
Interface for IConverterFormat.
Interface for file convenvereter formats.
Sim, the actual simulator.
Contains the state of the whole Simulator at a given simulation step.
Definition: SimState.h:33