Public Member Functions | Private Member Functions | Private Attributes
ModeExecutor Class Reference

#include <modeExecutor.h>

List of all members.

Public Member Functions

uint64_t execute (boost::shared_ptr< Mode > mode)
uint64_t execute (cob_light::LightMode requestMode)
int getExecutingMode ()
int getExecutingPriority ()
uint64_t getExecutingUId ()
 ModeExecutor (IColorO *colorO)
void pause ()
void resume ()
void setDefaultPriority (int priority)
void stop ()
bool stop (uint64_t uId)
 ~ModeExecutor ()

Private Member Functions

void onColorSetReceived (color::rgba color)
void onModeFinishedReceived (int prio)

Private Attributes

color::rgba _activeColor
boost::shared_ptr< Mode_activeMode
IColorO_colorO
std::map< int,
boost::shared_ptr< Mode >
, std::greater< int > > 
_mapActiveModes
bool _stopRequested
int default_priority

Detailed Description

Definition at line 28 of file modeExecutor.h.


Constructor & Destructor Documentation

Definition at line 21 of file modeExecutor.cpp.

Definition at line 28 of file modeExecutor.cpp.


Member Function Documentation

uint64_t ModeExecutor::execute ( boost::shared_ptr< Mode mode)

Definition at line 42 of file modeExecutor.cpp.

uint64_t ModeExecutor::execute ( cob_light::LightMode  requestMode)

Definition at line 32 of file modeExecutor.cpp.

Definition at line 174 of file modeExecutor.cpp.

Definition at line 182 of file modeExecutor.cpp.

Definition at line 190 of file modeExecutor.cpp.

void ModeExecutor::onColorSetReceived ( color::rgba  color) [private]

Definition at line 169 of file modeExecutor.cpp.

void ModeExecutor::onModeFinishedReceived ( int  prio) [private]

Definition at line 147 of file modeExecutor.cpp.

Definition at line 88 of file modeExecutor.cpp.

Definition at line 96 of file modeExecutor.cpp.

void ModeExecutor::setDefaultPriority ( int  priority)

Definition at line 198 of file modeExecutor.cpp.

Definition at line 102 of file modeExecutor.cpp.

bool ModeExecutor::stop ( uint64_t  uId)

Definition at line 115 of file modeExecutor.cpp.


Member Data Documentation

Definition at line 53 of file modeExecutor.h.

boost::shared_ptr<Mode> ModeExecutor::_activeMode [private]

Definition at line 51 of file modeExecutor.h.

Definition at line 49 of file modeExecutor.h.

std::map<int, boost::shared_ptr<Mode>, std::greater<int> > ModeExecutor::_mapActiveModes [private]

Definition at line 52 of file modeExecutor.h.

Definition at line 55 of file modeExecutor.h.

Definition at line 56 of file modeExecutor.h.


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


cob_light
Author(s): Benjamin Maidel
autogenerated on Sat Jun 8 2019 21:02:07