PIP 5.6.1
Platform-Independent Primitives
Files | Classes
StateMachine

State machine. More...

Files

file  pistatemachine_base.h
 Declares helper types shared by the state machine API.
 
file  pistatemachine_state.h
 Declares states used by PIStateMachine.
 
file  pistatemachine_transition.h
 Declares transitions used by PIStateMachine.
 
file  pistatemachinemodule.h
 Declares module entry includes for the state machine API.
 

Classes

class  PIStateMachine
 Root object that owns and runs a hierarchical state machine. More...
 
class  PIStateBase
 Base class for states in a hierarchical state machine. More...
 
class  PIStateLambda
 State implementation that forwards enter and exit virtual methods to callbacks. More...
 
class  PIStateFinal
 Final state that finishes its parent state when entered. More...
 
class  PITransitionBase
 Transition between states in PIStateMachine. More...
 
class  PITransitionTimeout
 Transition that fires automatically after a timeout. More...
 

Detailed Description

State machine.

Building with CMake

find_package(PIP REQUIRED)
target_link_libraries([target] PIP)
Common

The module provides hierarchical states, event-driven transitions, timeout transitions and helper state classes for callback-based logic. Details in State machine

Authors

Ivan Pelipenko peri4.nosp@m.ko@y.nosp@m.andex.nosp@m..ru;