1 #ifndef ISESSION_H_INCLUDED
2 #define ISESSION_H_INCLUDED
25 #include <boost/property_tree/ptree.hpp>
36 Q_DECLARE_METATYPE(std::string)
40 namespace Gui {
namespace Controller {
class AppController;}}
57 using ExportCallbackType = std::function<void(const std::string&)>;
59 std::string extension;
60 ExportCallbackType callback;
62 using ExportersType = std::vector<std::pair<std::string, ExporterType>>;
75 virtual std::shared_ptr<RootViewerType>
83 virtual void ForceExport() = 0;
88 virtual ExportersType GetExporters() = 0;
96 virtual const boost::property_tree::ptree& GetParameters()
const = 0;
101 virtual void SetParameters(
const boost::property_tree::ptree&) = 0;
108 virtual void StartSimulation(
int steps = -1) = 0;
113 virtual void StopSimulation() = 0;
121 virtual void TimeStep() = 0;
142 void InfoMessage(
const std::string &message,
const InfoMessageReason &reason);
151 void ErrorMessage(
const std::string &error);
157 #endif // end_of_inclde_guard
Interface for a node in a hierarchical tree of viewers.
InfoMessageReason
Enumeration for the reason of an emitted InfoMessage from the project.
virtual ~ISession()
Virtual destructor for interface class.
see the online Qt documentation
see the online Qt documentation
Namespace for generic graphical shell for simulators.
Interface for IViewerNode.
Generic session interface.
Utility class to for timing.