VPTissue Reference Manual
StartupFileBase.h
Go to the documentation of this file.
1 #ifndef SIMPT_WS_STARTUP_BASE_H_INCLUDED
2 #define SIMPT_WS_STARTUP_BASE_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 "sim/SimState.h"
23 #include "workspace/IFile.h"
24 #include "workspace/IWorkspace.h"
25 
26 namespace SimPT_Shell {
27 namespace Ws {
28 
35 {
36 public:
39  StartupFileBase(const std::string& path);
40 
42  virtual const std::string& GetPath() const;
43 
45  virtual SimPT_Sim::SimState GetSimState(int timestep) const = 0;
46 
48  virtual std::vector<int> GetTimeSteps() const = 0;
49 
50  static const ConstructorType Constructor;
51 
52 protected:
53  const std::string m_path;
54 };
55 
56 } // namespace
57 } // namespace
58 
59 #endif // end_of_include_guard
virtual std::vector< int > GetTimeSteps() const =0
Get list of sim steps contained in the file.
Interface for IFile.
Namespace for SimPT shell package.
Definition: Client.cpp:50
StartupFileBase(const std::string &path)
Constructor.
virtual SimPT_Sim::SimState GetSimState(int timestep) const =0
Get simstate with given timestep.
Header for SimState.
std::function< std::shared_ptr< IFile >(const std::string &, const std::string &)> ConstructorType
First argument: filename.
Definition: IFile.h:47
virtual const std::string & GetPath() const
Interface for IWorkspace.
Contains the state of the whole Simulator at a given simulation step.
Definition: SimState.h:33
Interface for files in a project in a workspace.
Definition: IFile.h:40
Base class representing the file types used to initiate a session.