Ardour  9.0-pre0-582-g084a23a80d
ArdourSurface::US2400::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 37 of file surfaces/us2400/types.h.

Member Enumeration Documentation

◆ state_t

Enumerator
none 
off 
flashing 
on 

Definition at line 40 of file surfaces/us2400/types.h.

Constructor & Destructor Documentation

◆ LedState() [1/3]

ArdourSurface::US2400::LedState::LedState ( )
inline

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

◆ LedState() [2/3]

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

Definition at line 42 of file surfaces/us2400/types.h.

◆ LedState() [3/3]

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

Definition at line 43 of file surfaces/us2400/types.h.

Member Function Documentation

◆ operator!=()

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

Definition at line 52 of file surfaces/us2400/types.h.

◆ operator=()

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

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

◆ operator==()

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

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

◆ state()

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

Definition at line 57 of file surfaces/us2400/types.h.

Member Data Documentation

◆ _state

state_t ArdourSurface::US2400::LedState::_state
private

Definition at line 60 of file surfaces/us2400/types.h.


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