Backproject
|
Represents an operation that can be performed based on the 'Context' (This is an abstract class, it cannot be directly instantiated) More...
#include <ContextOperation.h>
Public Member Functions | |
virtual bool | IsPossible (const Context &context) const =0 |
Indicates whether the operation can be performed given the current state of affairs. More... | |
virtual std::string | getDescription () const =0 |
Gives a short (infinitive verb) indication of what the operation does. More... | |
virtual std::string | Perform (Context &context) const =0 |
Performs the operation on the context. More... | |
Represents an operation that can be performed based on the 'Context' (This is an abstract class, it cannot be directly instantiated)
|
pure virtual |
Gives a short (infinitive verb) indication of what the operation does.
Implemented in LoadHardCodedPointsOperation, LoadImagesOperation, RemoveAllImagesOperation, RemoveAllPointsOperation, DisplayImageDetailsOperation, EnterPointsOperation, and PurposelyBrokenOperation.
|
pure virtual |
Indicates whether the operation can be performed given the current state of affairs.
context | the context for which the operation may be runnable |
Implemented in LoadHardCodedPointsOperation, LoadImagesOperation, RemoveAllImagesOperation, DisplayImageDetailsOperation, EnterPointsOperation, RemoveAllPointsOperation, and PurposelyBrokenOperation.
|
pure virtual |
Performs the operation on the context.
context | the context onto which to perform the operatoin |
Implemented in LoadHardCodedPointsOperation, LoadImagesOperation, PurposelyBrokenOperation, RemoveAllImagesOperation, RemoveAllPointsOperation, DisplayImageDetailsOperation, and EnterPointsOperation.