1 #ifndef WS_IFILE_H_INCLUDED
2 #define WS_IFILE_H_INCLUDED
47 using ConstructorType = std::function<std::shared_ptr<IFile>(
const std::string&,
const std::string&)>;
54 virtual std::shared_ptr<Session::ISession>
56 std::shared_ptr<SimShell::Ws::IProject> proj,
57 std::shared_ptr<SimShell::Ws::IWorkspace> ws)
const = 0;
63 virtual const std::string&
GetPath()
const = 0;
69 #endif // end_of_inclde_guard
virtual std::shared_ptr< Session::ISession > CreateSession(std::shared_ptr< SimShell::Ws::IProject > proj, std::shared_ptr< SimShell::Ws::IWorkspace > ws) const =0
Create simulation entities from file.
virtual std::vector< QAction * > GetContextMenuActions() const =0
Get Qt actions that can be triggered on this type of file.
std::function< std::shared_ptr< IFile >(const std::string &, const std::string &)> ConstructorType
First argument: filename.
virtual const std::string & GetPath() const =0
Get file path.
Interface for MergedPreferences.
Interface for files in a project in a workspace.
Namespace for generic graphical shell for simulators.
virtual ~IFile()
Virtual destructor.