frepple::CommandDeleteOperationPlan Class Reference
This command is used to delete an operationplan. More...
#include <model.h>

Public Member Functions | |
CommandDeleteOperationPlan (OperationPlan *o) | |
void | execute () |
void | undo () |
bool | undoable () const |
~CommandDeleteOperationPlan () |
Detailed Description
This command is used to delete an operationplan.
The operationplan will be deleted when the command is created.
Definition at line 5471 of file model.h.
Constructor & Destructor Documentation
frepple::CommandDeleteOperationPlan::CommandDeleteOperationPlan | ( | OperationPlan * | o | ) |
Constructor.
Unlike most other commands the constructor already executes the deletion.
Definition at line 448 of file model/actions.cpp.
frepple::CommandDeleteOperationPlan::~CommandDeleteOperationPlan | ( | ) | [inline] |
Member Function Documentation
void frepple::CommandDeleteOperationPlan::execute | ( | ) | [inline, virtual] |
This method is used to actually execute the action.
A couple of notes on how this method should be implemented by the subclasses:
- Calling the method multiple times is harmless and results in the same state change as calling it only once.
Implements frepple::utils::Command.
void frepple::CommandDeleteOperationPlan::undo | ( | ) | [virtual] |
This method is undoing the state change of the execute() method.
Reversing the action is not possible for all commands. Command subclasses should override the undo() and undoable() method in case they are reversible.
A couple of notes on how this method should be implemented by the subclasses:
- Calling the undo() method is harmless if the execute() hasn't been called yet.
- Calling the undo() method multiple times is harmless and results in the same state change as calling it only once.
Reimplemented from frepple::utils::Command.
Definition at line 474 of file model/actions.cpp.
bool frepple::CommandDeleteOperationPlan::undoable | ( | ) | const [inline, virtual] |
Returns true if the execution of this command can be undone.
Reimplemented from frepple::utils::Command.
The documentation for this class was generated from the following files:
Documentation generated for frePPLe by
