Implementation of the MoveProcessor class and the MoveCommand base class, along with the various MoveXX classes used in the Null Object Pattern. More...
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include "helpers/formatstring.h"
Go to the source code of this file.
Classes | |
class | MoveCommand |
Base class that represents a move command. A move command has a name and the command character that represents the command in the initial string of movement commands. More... | |
class | MoveCommandLeft |
Represents the Move Left command. More... | |
class | MoveCommandRight |
Represents the Move Right command. More... | |
class | MoveCommandUp |
Represents the Move Up command. More... | |
class | MoveCommandDown |
Represents the Move Down command. More... | |
class | MoveCommandNone |
Represents the Do Nothing command. This is the Null Object for this exercise. More... | |
class | MoveProcessor |
Represents the processor that translates the move list into a list of MoveCommand objects then either displays them or executes them. More... | |
Namespaces | |
namespace | DesignPatternExamples_cpp |
The namespace containing all Design Pattern Examples implemented in C++. | |
Macros | |
#define | __NULL_OBJECT_H__ |
Implementation of the MoveProcessor class and the MoveCommand base class, along with the various MoveXX classes used in the Null Object Pattern.
Definition in file Null_Object.h.
#define __NULL_OBJECT_H__ |
Definition at line 9 of file Null_Object.h.