26 bool check(
const Ts &...
x)
override {
return this->
parent_->is_writing(); }
30 void play(
const Ts &...
x)
override { this->
parent_->set_tag_emulation_off(); }
34 void play(
const Ts &...
x)
override { this->
parent_->set_tag_emulation_on(); }
38 void play(
const Ts &...
x)
override { this->
parent_->set_polling_off(); }
42 void play(
const Ts &...
x)
override { this->
parent_->set_polling_on(); }
46 void play(
const Ts &...
x)
override { this->
parent_->clean_mode(); }
50 void play(
const Ts &...
x)
override { this->
parent_->format_mode(); }
54 void play(
const Ts &...
x)
override { this->
parent_->read_mode(); }
58 TEMPLATABLE_VALUE(std::string,
message)
59 TEMPLATABLE_VALUE(
bool, include_android_app_record)
61 void play(
const Ts &...
x)
override {
62 this->
parent_->set_tag_emulation_message(this->message_.optional_value(
x...),
63 this->include_android_app_record_.optional_value(
x...));
68 TEMPLATABLE_VALUE(std::string,
message)
69 TEMPLATABLE_VALUE(
bool, include_android_app_record)
71 void play(
const Ts &...
x)
override {
72 this->
parent_->set_tag_write_message(this->message_.optional_value(
x...),
73 this->include_android_app_record_.optional_value(
x...));
78 void play(
const Ts &...
x)
override { this->
parent_->write_mode(); }
Base class for all automation conditions.
Helper class to easily give an object a parent of type T.
void trigger(const Ts &...x)
void add_on_emulated_tag_scan_callback(std::function< void()> callback)
void add_on_finished_write_callback(std::function< void()> callback)
bool check(const Ts &...x) override
PN7150OnEmulatedTagScanTrigger(PN7150 *parent)
PN7150OnFinishedWriteTrigger(PN7150 *parent)
Providing packet encoding functions for exchanging data with a remote host.