Ardour  9.0-pre0-384-ga76afae0e9
ArdourSurface::NS_MCU::LedState Class Reference

#include <types.h>

Public Types

enum  state_t { none , off , flashing , on }
 

Public Member Functions

 LedState ()
 
 LedState (bool yn)
 
 LedState (state_t state)
 
LedStateoperator= (state_t s)
 
bool operator== (const LedState &other) const
 
bool operator!= (const LedState &other) const
 
state_t state () const
 

Private Attributes

state_t _state
 

Detailed Description

This started off as an enum, but it got really annoying typing ? on : off

Definition at line 41 of file surfaces/mackie/types.h.

Member Enumeration Documentation

◆ state_t

Enumerator
none 
off 
flashing 
on 

Definition at line 44 of file surfaces/mackie/types.h.

Constructor & Destructor Documentation

◆ LedState() [1/3]

ArdourSurface::NS_MCU::LedState::LedState ( )
inline

Definition at line 45 of file surfaces/mackie/types.h.

◆ LedState() [2/3]

ArdourSurface::NS_MCU::LedState::LedState ( bool  yn)
inline

Definition at line 46 of file surfaces/mackie/types.h.

◆ LedState() [3/3]

ArdourSurface::NS_MCU::LedState::LedState ( state_t  state)
inline

Definition at line 47 of file surfaces/mackie/types.h.

Member Function Documentation

◆ operator!=()

bool ArdourSurface::NS_MCU::LedState::operator!= ( const LedState other) const
inline

Definition at line 56 of file surfaces/mackie/types.h.

◆ operator=()

LedState& ArdourSurface::NS_MCU::LedState::operator= ( state_t  s)
inline

Definition at line 49 of file surfaces/mackie/types.h.

◆ operator==()

bool ArdourSurface::NS_MCU::LedState::operator== ( const LedState other) const
inline

Definition at line 51 of file surfaces/mackie/types.h.

◆ state()

state_t ArdourSurface::NS_MCU::LedState::state ( void  ) const
inline

Definition at line 61 of file surfaces/mackie/types.h.

Member Data Documentation

◆ _state

state_t ArdourSurface::NS_MCU::LedState::_state
private

Definition at line 64 of file surfaces/mackie/types.h.


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