20#ifndef SDFORMAT_EDITOR_OPEN_FILE_COMMAND_HH_
21#define SDFORMAT_EDITOR_OPEN_FILE_COMMAND_HH_
24#include <interfaces/command_interface.h>
25#include <interfaces/sdformat_parser_interface.h>
26#include <interfaces/gui_interface.h>
42 private:
bool Execute()
override;
64 private:
bool IsThreaded(
bool& prevent_user_input)
override;
74 private: std::shared_ptr<GUII>
gui;
The command class encapsulates the interactions between the various interfaces of the SDFormat Editor...
Definition command_interface.h:29
Open model command implementation of CommandI.
Definition OpenFileCommand.h:31
bool IsThreaded(bool &prevent_user_input) override
Implementation of interface method.
Definition OpenFileCommand.cpp:95
std::string file_path
Filepath of the model.
Definition OpenFileCommand.h:71
std::shared_ptr< SDFormatParserI > sdformatParser
Pointer to the sdformat parser interface.
Definition OpenFileCommand.h:77
bool ExecuteUndo() override
Implementation of interface method.
Definition OpenFileCommand.cpp:85
std::shared_ptr< GUII > gui
Pointer to the gui interface.
Definition OpenFileCommand.h:74
bool Execute() override
Implementation of interface method.
Definition OpenFileCommand.cpp:31
bool ChangesProgramStateIrreversibly() override
Implementation of interface method.
Definition OpenFileCommand.cpp:111
bool ExecuteRedo() override
Implementation of interface method.
Definition OpenFileCommand.cpp:90
bool IsUndoable() override
Implementation of interface method.
Definition OpenFileCommand.cpp:101
bool IsRedoable() override
Implementation of interface method.
Definition OpenFileCommand.cpp:106