blink1-control
blink1_control::config::PatternCommand Struct Referenceabstract

#include <PatternCommand.hpp>

Inheritance diagram for blink1_control::config::PatternCommand:
blink1_control::config::FadeCommand blink1_control::config::WaitCommand

Public Member Functions

virtual void execute (blink1_lib::Blink1Device &device)=0
 

Friends

std::ostream & operator<< (std::ostream &os, const blink1_control::config::PatternCommand &config)
 

Detailed Description

Abstract class defining a command that can be in a pattern.

See also
PatternConfig

Member Function Documentation

◆ execute()

virtual void blink1_control::config::PatternCommand::execute ( blink1_lib::Blink1Device &  device)
pure virtual

Executes the command.

Parameters
deviceThe blink(1) device to execute on, if applicable.

Implemented in blink1_control::config::WaitCommand, and blink1_control::config::FadeCommand.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const blink1_control::config::PatternCommand config 
)
friend

Output operator

Parameters
osOutput stream
configPatternCommand to output

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