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