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

Declaration of the IStateContext and IStateBehavior interfaces, as well as the StateContext_Class class used in the State Pattern. More...

#include <memory>
#include <string>
Include dependency graph for State_Class.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  IStateContext
 Represents the context as passed to each state class. More...
 
struct  IStateBehavior
 Represents a class that implements one state of the state machine. More...
 
class  StateContext_Class
 Wraps a private implementation of the state machine. The implementation maintains the context in which the state machine runs. More...
 

Namespaces

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

Macros

#define __STATE_CLASS_H__
 

Enumerations

enum  CurrentState {
  Initial , NormalText , DoubleQuotedText , SingleQuotedText ,
  EscapedDoubleQuoteText , EscapedSingleQuoteText , StartComment , LineComment ,
  BlockComment , EndBlockComment , Done
}
 Represents the current state of the state machine. More...
 

Variables

const char EOF_CHAR = static_cast<char>(0xff)
 Indicates End-of-file (no more data available).
 

Detailed Description

Declaration of the IStateContext and IStateBehavior interfaces, as well as the StateContext_Class class used in the State Pattern.

Definition in file State_Class.h.

Macro Definition Documentation

◆ __STATE_CLASS_H__

#define __STATE_CLASS_H__

Definition at line 10 of file State_Class.h.