Implementation of the IStateContext and IStateBehavior interfaces, along with the private implementation of the StateContext_ClassImpl class and the various StateXXX classes used in the State Pattern. More...
#include <iostream>
#include <stdexcept>
#include <exception>
#include <map>
#include <memory>
#include <sstream>
#include "helpers/formatstring.h"
#include "State_Class.h"
Go to the source code of this file.
Namespaces | |
namespace | DesignPatternExamples_cpp |
The namespace containing all Design Pattern Examples implemented in C++. | |
Implementation of the IStateContext and IStateBehavior interfaces, along with the private implementation of the StateContext_ClassImpl class and the various StateXXX classes used in the State Pattern.
The class implementations are in an anonymous namespace in a .cpp file to better hide them from the rest of the program.
Definition in file State_Class.cpp.