Design Pattern Examples
Overview of object-oriented design patterns
State_Class.cpp File Reference

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"
Include dependency graph for State_Class.cpp:

Go to the source code of this file.

Namespaces

namespace  DesignPatternExamples_cpp
 The namespace containing all Design Pattern Examples implemented in C++.
 

Detailed Description

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.