Struct SessionLoaderGenerator¶
Defined in File SessionLoaderGenerator.h
Inheritance Relationships¶
Base Types¶
public SmartPeak::IPropertiesHandler(Struct IPropertiesHandler)public SmartPeak::IApplicationProcessorObserver(Struct IApplicationProcessorObserver)
Struct Documentation¶
-
struct SessionLoaderGenerator : public SmartPeak::IPropertiesHandler, public SmartPeak::IApplicationProcessorObserver¶
This class records the executed workflow in order to be able to construct a workflow capable of restoring the state. the constructed workflow will be recorded in the session file and executed while the session is loaded.
Public Functions
-
inline SessionLoaderGenerator()¶
-
virtual void onApplicationProcessorStart(const std::vector<std::string> &commands) override¶
-
inline virtual void onApplicationProcessorCommandStart(size_t command_index, const std::string &command_name) override¶
-
inline virtual void onApplicationProcessorCommandEnd(size_t command_index, const std::string &command_name) override¶
-
inline virtual void onApplicationProcessorEnd() override¶
-
inline virtual void onApplicationProcessorError(const std::string &error) override¶
-
virtual std::string getPropertiesHandlerName() const override¶
-
virtual std::map<std::string, CastValue::Type> getPropertiesSchema() const override¶
Returns the list of properties, name of the property, and its type.
- Returns
a map of name/type
-
virtual std::optional<CastValue> getProperty(const std::string &property, const size_t row) const override¶
Returns the property value based on the name.
- Returns
the property value, as CastValue, std::nullopt if the property does not exists.
-
virtual void setProperty(const std::string &property, const CastValue &value, const size_t row) override¶
Sets the property value based on the name.
-
inline void clear()¶
-
std::vector<std::string> getLoadingWorkflowCommands() const¶
Protected Attributes
-
std::map<int, std::string> loading_workflow_commands_¶
-
inline SessionLoaderGenerator()¶