VPTissue Reference Manual
SimShell::Ws::IFile Class Referenceabstract

Interface for files in a project in a workspace. More...

#include <IFile.h>

Inheritance diagram for SimShell::Ws::IFile:
Inheritance graph
Collaboration diagram for SimShell::Ws::IFile:
Collaboration graph

Public Types

using ConstructorType = std::function< std::shared_ptr< IFile >(const std::string &, const std::string &)>
 First argument: filename. More...
 

Public Member Functions

virtual ~IFile ()
 Virtual destructor.
 
virtual std::shared_ptr< Session::ISessionCreateSession (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.
 
virtual const std::string & GetPath () const =0
 Get file path.
 

Detailed Description

Interface for files in a project in a workspace.

A file can serve as a starting point for a session (=opened state of a project).

A file can also specify actions specific for its subtype.

Definition at line 40 of file IFile.h.

Member Typedef Documentation

using SimShell::Ws::IFile::ConstructorType = std::function<std::shared_ptr<IFile>(const std::string&, const std::string&)>

First argument: filename.

Second argument: path of file, including filename.

Definition at line 47 of file IFile.h.


The documentation for this class was generated from the following file: