1#line 1 "S:/jenkins/workspace/ECP/ufe/ufe-full-python3.11-windows/ufe/include/undoableCommandMgr.h"
2#ifndef _undoableCommandMgr
3#define _undoableCommandMgr
20class UndoableCommandGuard;
38 typedef std::shared_ptr<UndoableCommandMgr>
Ptr;
UndoableCommandGuard(const std::string &commandString)
Constructors.
void setSuccess()
Set execution as a success.
virtual ~UndoableCommandGuard()
Destructor.
UndoableCommandGuard(const UndoableCommandGuard &)=delete
UndoableCommandMgr::Ptr fPreviousCommandMgr
std::shared_ptr< UndoableCommand > Ptr
Abstract base class for undoable command manager.
UndoableCommandMgr(const UndoableCommandMgr &)=delete
Constructors.
static UndoableCommandMgr & instance()
virtual void registerCmd(const UndoableCommand::Ptr &cmd) const
The method registers the command (i.e. without executing it) to the undo queue.
virtual ~UndoableCommandMgr()
Destructor.
virtual void executeCmd(const UndoableCommand::Ptr &cmd) const
The method directly executes the command i.e., not undoable execution.
static void initializeInstance(const Ptr &instance)
std::shared_ptr< UndoableCommandMgr > Ptr
UndoableCommandMgr()
Only derived classes can create an undoable command manager.
std::string string(const Path &path)
Definition of macros for symbol visibility.