Wraps a private implementation of the state machine. The implementation maintains the context in which the state machine runs. More...
#include <State_Class.h>
Public Member Functions | |
StateContext_Class () | |
Default constructor. | |
std::string | RemoveComments (std::string text) |
Entry point for callers to filter text. Removes C++-style line and block comments from the text. | |
Private Attributes | |
std::unique_ptr< IStateContext > | _stateContextimpl |
Pointer to the actual implementation. | |
Wraps a private implementation of the state machine. The implementation maintains the context in which the state machine runs.
To use:
Definition at line 138 of file State_Class.h.
Default constructor.
Definition at line 850 of file State_Class.cpp.
std::string RemoveComments | ( | std::string | text | ) |
Entry point for callers to filter text. Removes C++-style line and block comments from the text.
text | The text to filter. |
Definition at line 856 of file State_Class.cpp.
References StateContext_Class::_stateContextimpl.
Referenced by DesignPatternExamples_cpp::State_Exercise().
|
private |
Pointer to the actual implementation.
Definition at line 144 of file State_Class.h.
Referenced by StateContext_Class::RemoveComments().