Backproject
RemoveAllImagesOperation.h
1 
2 
3 #ifndef BACKPROJECT_REMOVEALLIMAGESOPERATION_H
4 #define BACKPROJECT_REMOVEALLIMAGESOPERATION_H
5 
6 
7 #include "ContextOperation.h"
8 
13 {
14 public:
15  virtual bool IsPossible(const Context &context) const;
16 
17  virtual std::string getDescription() const;
18 
19  virtual std::string Perform(Context &context) const;
20 
21 };
22 
23 
24 #endif //BACKPROJECT_REMOVEALLIMAGESOPERATION_H
virtual std::string Perform(Context &context) const
Performs the operation on the context.
Definition: RemoveAllImagesOperation.cpp:17
Represents an operation that can be performed based on the 'Context' (This is an abstract class...
Definition: ContextOperation.h:19
A context; keeps track of overal program state in a way that is easily accessed by multiple functions...
Definition: Context.h:19
Removes all the images that a context has.
Definition: RemoveAllImagesOperation.h:12
virtual std::string getDescription() const
Gives a short (infinitive verb) indication of what the operation does.
Definition: RemoveAllImagesOperation.cpp:11
virtual bool IsPossible(const Context &context) const
Indicates whether the operation can be performed given the current state of affairs.
Definition: RemoveAllImagesOperation.cpp:6