VPTissue Reference Manual
IWorkspaceFactory.h
Go to the documentation of this file.
1 #ifndef WS_IWORKSPACEFACTORY_H_INCLUDED
2 #define WS_IWORKSPACEFACTORY_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  */
21 #include "IWorkspace.h"
22 
23 namespace SimShell {
24 namespace Ws {
25 
30 {
31 public:
33  virtual ~IWorkspaceFactory() {}
34 
37  virtual std::string GetWorkspaceTemplatePath() const = 0;
38 
42  virtual std::string GetDefaultWorkspaceName() const = 0;
43 
45  virtual std::shared_ptr<IWorkspace> CreateWorkspace(const std::string& path) = 0;
46 
48  virtual void InitWorkspace(const std::string& path) = 0;
49 };
50 
51 } // namespace
52 } // namespace
53 
54 #endif // end_of_inclde_guard
virtual std::string GetWorkspaceTemplatePath() const =0
Get path to template workspace.
virtual void InitWorkspace(const std::string &path)=0
Initialize empty workspace at given path.
virtual std::shared_ptr< IWorkspace > CreateWorkspace(const std::string &path)=0
Open workspace with given path and return interface to it.
Interface for IWorkspace.
Interface for factories creating an application-specific workspace.
virtual std::string GetDefaultWorkspaceName() const =0
Get default workspace name.
virtual ~IWorkspaceFactory()
Virtual destructor.
Namespace for generic graphical shell for simulators.
Definition: SimSession.h:32