rotor_light
real-time C++ actor micro-framework for embedded systems, supervisable
rotor_light::message::ChangeState Struct Reference

State Change command, from supervisor/actor to actor. More...

#include <messages.hpp>

Inheritance diagram for rotor_light::message::ChangeState:
rotor_light::Message

Public Member Functions

 ChangeState (ActorId to, details::StateCommand command_)
 
- Public Member Functions inherited from rotor_light::Message
 Message (ActorId to_)
 
 Message (const Message &)=delete
 
 Message (Message &&)=delete
 

Public Attributes

details::StateCommand command
 
- Public Attributes inherited from rotor_light::Message
MessageTypeId type
 

Static Public Attributes

static constexpr auto undef = std::numeric_limits<MessageTypeId>::max()
 
static constexpr auto type_id = undef - 1
 

Detailed Description

State Change command, from supervisor/actor to actor.

Constructor & Destructor Documentation

◆ ChangeState()

rotor_light::message::ChangeState::ChangeState ( ActorId  to,
details::StateCommand  command_ 
)
inline

records destination and state change command

Member Data Documentation

◆ command

details::StateCommand rotor_light::message::ChangeState::command

state change command

◆ type_id

constexpr auto rotor_light::message::ChangeState::type_id = undef - 1
staticconstexpr

message type identifyer

◆ undef

constexpr auto rotor_light::message::ChangeState::undef = std::numeric_limits<MessageTypeId>::max()
staticconstexpr

synthethic message id used as anchor for rotor-light messages


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