Represents the context as passed to each state class. More...
#include <State_Class.h>
Public Types | |
using | shared_ptr_t = std::shared_ptr< IStateContext > |
Alias to make using a shared pointer easier. | |
Public Member Functions | |
virtual | ~IStateContext () |
Virtual destructor as required for interfaces. | |
virtual char | GetNextCharacter ()=0 |
Get the next character from the input. | |
virtual void | OutputCharacter (char character)=0 |
Write the character to the context-> This is how the parser accumulates the filtered text. | |
Represents the context as passed to each state class.
Each state class can access the next character or output the current character through this interface.
Definition at line 60 of file State_Class.h.
using shared_ptr_t = std::shared_ptr<IStateContext> |
Alias to make using a shared pointer easier.
Definition at line 65 of file State_Class.h.
|
inlinevirtual |
Virtual destructor as required for interfaces.
Definition at line 70 of file State_Class.h.
|
pure virtual |
Get the next character from the input.
|
pure virtual |
Write the character to the context-> This is how the parser accumulates the filtered text.
character | The character to accumulate |