Design Pattern Examples
Overview of object-oriented design patterns
StateHandler Struct Reference

Maps a value from the CurrentState enumeration to a function that handles the transition from that state to the next state based on the context. More...

Collaboration diagram for StateHandler:
Collaboration graph

Public Attributes

CurrentState state
 Value from the CurrentState enumeration.
 
StateFunctionPtr stateHandler
 Function pointer to be called based on this state.
 

Detailed Description

Maps a value from the CurrentState enumeration to a function that handles the transition from that state to the next state based on the context.

Definition at line 648 of file State_RemoveComments.c.

Member Data Documentation

◆ state

CurrentState state

Value from the CurrentState enumeration.

Definition at line 650 of file State_RemoveComments.c.

◆ stateHandler

StateFunctionPtr stateHandler

Function pointer to be called based on this state.

Definition at line 651 of file State_RemoveComments.c.

Referenced by _GetStateFunction().


The documentation for this struct was generated from the following file: