VPTissue Reference Manual
StartupFileHdf5.h
Go to the documentation of this file.
1 #ifndef SIMPT_WS_SIMPT_FILE_HDF5_H_INCLUDED
2 #define SIMPT_WS_SIMPT_FILE_HDF5_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  */
22 #include "StartupFileBase.h"
23 
24 namespace SimPT_Shell {
25 namespace Ws {
26 
31 {
32 public:
35  StartupFileHdf5(const std::string& path);
36 
38  virtual std::shared_ptr<SimShell::Session::ISession>
40  std::shared_ptr<SimShell::Ws::IProject> proj,
41  std::shared_ptr<SimShell::Ws::IWorkspace> ws) const;
42 
44  virtual std::vector<QAction*> GetContextMenuActions() const { return {}; }
45 
47  virtual SimPT_Sim::SimState GetSimState(int timestep) const;
48 
50  virtual std::vector<int> GetTimeSteps() const;
51 
52 private:
53  void InitializeReverseIndex() const;
54 
55  mutable bool m_reverse_index_initialized;
56  mutable std::map<int, int> m_reverse_index;
57 };
58 
59 } // namespace
60 } // namespace
61 
62 #endif // end_of_include_guard
virtual std::vector< int > GetTimeSteps() const
Namespace for SimPT shell package.
Definition: Client.cpp:50
StartupFileHdf5(const std::string &path)
Constructor.
A file containing Sim history information in HDF5 format in a project.
virtual std::shared_ptr< SimShell::Session::ISession > CreateSession(std::shared_ptr< SimShell::Ws::IProject > proj, std::shared_ptr< SimShell::Ws::IWorkspace > ws) const
Contains the state of the whole Simulator at a given simulation step.
Definition: SimState.h:33
virtual std::vector< QAction * > GetContextMenuActions() const
virtual SimPT_Sim::SimState GetSimState(int timestep) const
Base class representing the file types used to initiate a session.
Interface for StartupFileBase.