# IRsCommand Interface Reference

Inherits IRsObject.

Inherited by CRcUiOpenStackPanel.

List of all members.

## Public Member Functions
HRESULT | Execute (void)
HRESULT | Undo (void)
HRESULT | Redo (void)
HRESULT | HasUndo ([out, retval] RtBool *isUndoable)

## Detailed Description

Base interface for executable command. Can optionally support undo/redo functionality.

## Member Function Documentation

HRESULT IRsCommand::Execute | ( | void |  | ) |

Execute the command.

HRESULT IRsCommand::Undo | ( | void |  | ) |

Undo the command. Implements undo functionality if supported.

HRESULT IRsCommand::Redo | ( | void |  | ) |

Redo the command. Implements redo functionality if supported.

HRESULT IRsCommand::HasUndo | ( | [out, retval] RtBool * | isUndoable | ) |

Indicates support for undo/redo functionality.
Fills parameter with `true` value if undo/redo supported, `false` otherwise.

Returns:
  isUndoable [out,retval] indicates if the command supports undo .