12 void play(
const Ts &...
x)
override { this->
parent_->start(); }
16 void play(
const Ts &...
x)
override { this->
parent_->stop(); }
20 void play(
const Ts &...
x)
override { this->
parent_->set_mute_state(
true); }
23 void play(
const Ts &...
x)
override { this->
parent_->set_mute_state(
false); }
35 bool check(
const Ts &...
x)
override {
return this->
parent_->is_running(); }
40 bool check(
const Ts &...
x)
override {
return this->
parent_->get_mute_state(); }
Base class for all automation conditions.
Helper class to easily give an object a parent of type T.
void trigger(const Ts &...x)
DataTrigger(Microphone *mic)
bool check(const Ts &...x) override
bool check(const Ts &...x) override
void add_data_callback(std::function< void(const std::vector< uint8_t > &)> &&data_callback)
Providing packet encoding functions for exchanging data with a remote host.