VPTissue Reference Manual
|
Interface for files in a project in a workspace. More...
#include <IFile.h>
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::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. | |
virtual const std::string & | GetPath () const =0 |
Get file path. | |
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.
using SimShell::Ws::IFile::ConstructorType = std::function<std::shared_ptr<IFile>(const std::string&, const std::string&)> |