frepple::CommandDeleteOperationPlan Class Reference

This command is used to delete an operationplan. More...

#include <model.h>

Inheritance diagram for frepple::CommandDeleteOperationPlan:
frepple::utils::Command

List of all members.

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 5308 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 433 of file model/actions.cpp.

frepple::CommandDeleteOperationPlan::~CommandDeleteOperationPlan (  )  [inline]

Definition at line 5318 of file model.h.


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.

Definition at line 5315 of file model.h.

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 459 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.

Definition at line 5317 of file model.h.


The documentation for this class was generated from the following files:

Generated on 16 Apr 2010 for frePPLe by  doxygen 1.6.1