Backproject
LoadHardCodedPointsOperation.h
1 
2 
3 #ifndef BACKPROJECT_LOADHARDCODEDPOINTSOPERATION_H
4 #define BACKPROJECT_LOADHARDCODEDPOINTSOPERATION_H
5 
6 #include<iostream>
7 #include "ContextOperation.h"
8 #include "../Context.h"
9 
10 
15 {
16 public:
17 
18  virtual bool IsPossible(const Context &context) const;
19 
20  virtual std::string getDescription() const;
21 
22  virtual std::string Perform(Context &context) const;
23 
24 };
25 
26 
27 #endif //BACKPROJECT_LOADHARDCODEDPOINTSOPERATION_H
Represents an operation that can be performed based on the &#39;Context&#39; (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
virtual bool IsPossible(const Context &context) const
Indicates whether the operation can be performed given the current state of affairs.
Definition: LoadHardCodedPointsOperation.cpp:21
virtual std::string getDescription() const
Gives a short (infinitive verb) indication of what the operation does.
Definition: LoadHardCodedPointsOperation.cpp:26
Loads a hardcoded set of points into a context.
Definition: LoadHardCodedPointsOperation.h:14
virtual std::string Perform(Context &context) const
Performs the operation on the context.
Definition: LoadHardCodedPointsOperation.cpp:4