Accessories
Arduino for motors and lights library.
Action Class Reference

#include "ActionsStack.hpp"

Public Member Functions

 Action (unsigned long inId, ACCESSORIES_EVENT_TYPE inEvent, int inData = 0)
 

Public Attributes

unsigned long Id
 
ACCESSORIES_EVENT_TYPE Event
 
int Data
 

Detailed Description

This class is an item of the ActionStack. An action is what can be done by the user to ask for a accessory movement. It can be a move, a stop... Other kind of actions can be added in ACCESSORIES_EVENT_TYPE if necessary.

Definition at line 11 of file ActionsStack.hpp.

Constructor & Destructor Documentation

Action::Action ( unsigned long  inId,
ACCESSORIES_EVENT_TYPE  inEvent,
int  inData = 0 
)

Default constructor

Parameters
inIdId of the accessory
inEventEvent type
inDataAssociated data for this event. Default is 0.

Definition at line 9 of file ActionsStack.cpp.

Member Data Documentation

int Action::Data

Associated data.

Definition at line 19 of file ActionsStack.hpp.

ACCESSORIES_EVENT_TYPE Action::Event

Event type.

Definition at line 17 of file ActionsStack.hpp.

unsigned long Action::Id

Id of the accessory.

Definition at line 15 of file ActionsStack.hpp.


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