Implementation of the Command_TextObject and Command classes used in the Command Pattern. More...
Go to the source code of this file.
Classes | |
class | Command_TextObject |
Container for a string. Need to use a class that allows the text to be changed while the container (this class) remains constant. This way, operations can be applied to the text and the container's contents change but not the container (strings are immutable in C#; this dances around that problem). More... | |
class | Command |
Represents an operation that can be applied to a TextObject. This class can handle two kinds of operations, one that takes no additional parameters and one that takes two additional string parameters. More... | |
Namespaces | |
namespace | DesignPatternExamples_cpp |
The namespace containing all Design Pattern Examples implemented in C++. | |
Macros | |
#define | __COMMAND_CLASSES_H__ |
Typedefs | |
using | two_parameter_operation = void(*)(Command_TextObject::shared_ptr_t source, std::string argument1, std::string argument2) |
Alias for a function type representing an operation applied to a TextObject using two parameters. | |
using | no_parameter_operation = void(*)(Command_TextObject::shared_ptr_t source) |
Alias for a function type representing an operation applied to a TextObject that uses no additional arguments. | |
Implementation of the Command_TextObject and Command classes used in the Command Pattern.
Definition in file Command_Classes.h.
#define __COMMAND_CLASSES_H__ |
Definition at line 9 of file Command_Classes.h.