Sequential status switcher. More...
#include <SequentialStatusSwitcher.h>
Public Types | |
| typedef Switch | switch_type |
| typedef unsigned int | status_type |
Public Member Functions | |
| SequentialStatusSwitcher () | |
| Creates an empty SequentialStatusSwitcher. More... | |
| const status_type & | numberOfStatus () const |
| Returns maximum number of status. | |
| const status_type & | status () const |
| Returns current status. More... | |
| void | setStatus (status_type status) |
| Sets current status. | |
| void | setNumberOfStatus (status_type numberOfStatus) |
| Sets maximum number of status. | |
| void | refresh () |
| Refreshes the switcher. | |
| Switch & | switcher () |
| Returns a reference to the switch object. | |
| const Switch & | switcher () const |
| Returns a const reference to the switch object. | |
Public Attributes | |
| AbstractLog * | _log |
| Logger. | |
Sequential status switcher.
The SequentialStatusSwitcher class is used to keep track of a sequential list of status. Current status change whenever Button is enabled.
| Tinker::SequentialStatusSwitcher< Switch >::SequentialStatusSwitcher | ( | ) |
Creates an empty SequentialStatusSwitcher.
Maximum number of status and current status will be setted to 0
| const SequentialStatusSwitcher< Switch >::status_type & Tinker::SequentialStatusSwitcher< Switch >::status | ( | ) | const |
Returns current status.
1.8.5