VPTissue Reference Manual
SimPT_Shell::Ws::StartupFileBase Class Referenceabstract

Base class representing the file types used to initiate a session. More...

#include <StartupFileBase.h>

Inheritance diagram for SimPT_Shell::Ws::StartupFileBase:
Inheritance graph
Collaboration diagram for SimPT_Shell::Ws::StartupFileBase:
Collaboration graph

Public Member Functions

 StartupFileBase (const std::string &path)
 Constructor. More...
virtual const std::string & GetPath () const
virtual SimPT_Sim::SimState GetSimState (int timestep) const =0
 Get simstate with given timestep.
virtual std::vector< int > GetTimeSteps () const =0
 Get list of sim steps contained in the file.
- Public Member Functions inherited from SimShell::Ws::IFile
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.

Static Public Attributes

static const ConstructorType Constructor

Protected Attributes

const std::string m_path

Additional Inherited Members

- Public Types inherited from SimShell::Ws::IFile
using ConstructorType = std::function< std::shared_ptr< IFile >(const std::string &, const std::string &)>
 First argument: filename. More...

Detailed Description

Base class representing the file types used to initiate a session.

See also

Definition at line 34 of file StartupFileBase.h.

Constructor & Destructor Documentation

SimPT_Shell::Ws::StartupFileBase::StartupFileBase ( const std::string &  path)


pathPath to file.

Definition at line 34 of file StartupFileBase.cpp.

Member Function Documentation

const string & SimPT_Shell::Ws::StartupFileBase::GetPath ( ) const
See also

Implements SimShell::Ws::IFile.

Definition at line 39 of file StartupFileBase.cpp.

Referenced by SimPT_Shell::CliController::Execute().

Here is the caller graph for this function:

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