VPTissue Reference Manual
WorkspaceFactory.h
Go to the documentation of this file.
1 #ifndef SIMPT_SHELL_WORKSPACE_FACTORY_H_INCLUDED
2 #define SIMPT_SHELL_WORKSPACE_FACTORY_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 
24 namespace SimPT_Shell {
25 namespace Ws {
26 
31 {
32 public:
34  virtual ~WorkspaceFactory() {}
35 
36  std::shared_ptr<SimShell::Ws::IWorkspace> CreateCliWorkspace(const std::string& path);
37 
39  virtual std::shared_ptr<SimShell::Ws::IWorkspace> CreateWorkspace(const std::string& path);
40 
42  virtual std::string GetDefaultWorkspaceName() const;
43 
45  virtual std::string GetWorkspaceTemplatePath() const;
46 
48  virtual void InitWorkspace(const std::string& path);
49 
50  static const std::string g_project_index_file;
51  static const std::string g_workspace_index_file;
52 };
53 
54 } // namespace
55 } // namespace
56 
57 #endif // end_of_include_guard
virtual std::string GetWorkspaceTemplatePath() const
SimPT-specific implementation of workspace factory.
Namespace for SimPT shell package.
Definition: Client.cpp:50
virtual std::string GetDefaultWorkspaceName() const
Interface for IWorkspaceFactory.
virtual std::shared_ptr< SimShell::Ws::IWorkspace > CreateWorkspace(const std::string &path)
Interface for factories creating an application-specific workspace.
virtual void InitWorkspace(const std::string &path)
virtual ~WorkspaceFactory()
Virtual destructor.