OpenStructure
Public Member Functions | Protected Attributes
StateMachine Class Reference

#include <state_machine.hh>

Inherits QObject.

Public Member Functions

 StateMachine (QObject *parent)
 
void addState (State *state)
 
void setInitialState (State *state)
 
void start ()
 
bool isActive (State *state)
 
void setActive (State *state)
 
bool eventFilter (QObject *watched, QEvent *event)
 

Protected Attributes

Stateactive_state_
 

Detailed Description

Definition at line 33 of file state_machine.hh.

Constructor & Destructor Documentation

◆ StateMachine()

StateMachine ( QObject *  parent)

Member Function Documentation

◆ addState()

void addState ( State state)

◆ eventFilter()

bool eventFilter ( QObject *  watched,
QEvent *  event 
)

◆ isActive()

bool isActive ( State state)

◆ setActive()

void setActive ( State state)

◆ setInitialState()

void setInitialState ( State state)

◆ start()

void start ( )

Field Documentation

◆ active_state_

State* active_state_
protected

Definition at line 44 of file state_machine.hh.


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