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

Base class for files containing a Sim snapshot that can be read as a ptree. More...

#include <StartupFilePtree.h>

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

Public Member Functions

 StartupFilePtree (const std::string &path)
 Constructor. More...
 
virtual std::shared_ptr< SimShell::Session::ISessionCreateSession (std::shared_ptr< SimShell::Ws::IProject > proj, std::shared_ptr< SimShell::Ws::IWorkspace > ws) const
 
virtual SimPT_Sim::SimState GetSimState (int timestep) const
 
virtual std::vector< int > GetTimeSteps () const
 
virtual boost::property_tree::ptree ToPtree () const =0
 Returns file content in a ptree format.
 
- Public Member Functions inherited from SimPT_Shell::Ws::StartupFileBase
 StartupFileBase (const std::string &path)
 Constructor. More...
 
virtual const std::string & GetPath () const
 
- Public Member Functions inherited from SimShell::Ws::IFile
virtual ~IFile ()
 Virtual destructor.
 
virtual std::vector< QAction * > GetContextMenuActions () const =0
 Get Qt actions that can be triggered on this type of file.
 

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...
 
- Static Public Attributes inherited from SimPT_Shell::Ws::StartupFileBase
static const ConstructorType Constructor
 
- Protected Attributes inherited from SimPT_Shell::Ws::StartupFileBase
const std::string m_path
 

Detailed Description

Base class for files containing a Sim snapshot that can be read as a ptree.

Definition at line 30 of file StartupFilePtree.h.

Constructor & Destructor Documentation

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

Constructor.

Parameters
pathPath to file.

Definition at line 39 of file StartupFilePtree.cpp.

Member Function Documentation

shared_ptr< SimShell::Session::ISession > SimPT_Shell::Ws::StartupFilePtree::CreateSession ( std::shared_ptr< SimShell::Ws::IProject proj,
std::shared_ptr< SimShell::Ws::IWorkspace ws 
) const
virtual
See also
SimShell::Ws::IFile::CreateSession()

Implements SimShell::Ws::IFile.

Definition at line 45 of file StartupFilePtree.cpp.

References ToPtree().

Here is the call graph for this function:

SimPT_Sim::SimState SimPT_Shell::Ws::StartupFilePtree::GetSimState ( int  timestep) const
virtual
See also
StartupFileBase

Implements SimPT_Shell::Ws::StartupFileBase.

Definition at line 69 of file StartupFilePtree.cpp.

References SimPT_Sim::Sim::GetState(), SimPT_Sim::Sim::Initialize(), and ToPtree().

Here is the call graph for this function:

vector< int > SimPT_Shell::Ws::StartupFilePtree::GetTimeSteps ( ) const
virtual
See also
StartupFileBase

Implements SimPT_Shell::Ws::StartupFileBase.

Definition at line 85 of file StartupFilePtree.cpp.

References ToPtree().

Here is the call graph for this function:


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