Embedded Template Library  1.0
etl::istate_chart Class Referenceabstract

Simple Finite State Machine Interface. More...

#include <state_chart.h>

Public Types

typedef int state_id_t
 
typedef int event_id_t
 

Public Member Functions

virtual void start (const bool on_entry_initial=true)=0
 
virtual void process_event (const event_id_t event_id)=0
 
state_id_t get_state_id () const
 

Protected Member Functions

 istate_chart (state_id_t current_state_id_)
 

Protected Attributes

state_id_t current_state_id
 The current state id.
 

Detailed Description

Simple Finite State Machine Interface.

Member Function Documentation

◆ get_state_id()

state_id_t etl::istate_chart::get_state_id ( ) const
inline

Gets the current state id.

Returns
The current state id.

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