@ -48,6 +48,8 @@ class AssertLayerIsActive {
public:
virtual ~Action() = default;
Action(int layer_id) : layer_id_(layer_id) {}
virtual void describe(const char *add_indent = "") const override {
@ -47,6 +47,8 @@ class AssertTopActiveLayerIs {
@ -58,6 +58,7 @@ class GenerateHostEvent {
class Action : public interface::ReportAction<typename _ReportType::BaseReportType>,
public HostEventAction {
this->getSimulator()->log() << add_indent << "Generating host event";
@ -46,6 +46,8 @@ namespace interface {
Action(int cycle_id) : cycle_id_(cycle_id) {}
@ -48,6 +48,8 @@ namespace interface {
Action(Simulator_::TimeType delta_t, Simulator_::TimeType start_t = 0)
: start_t_(start_t),
delta_t_(delta_t)
@ -50,6 +50,8 @@ namespace interface {
Action(int n_overall_reports)
: n_overall_reports_(n_overall_reports) {}
Action(const std::function<bool()> &func)
: func_(func)
{}
@ -50,6 +50,7 @@ namespace interface {
Action(int n_reports) : n_reports_(n_reports) {}
@ -41,6 +41,8 @@ namespace interface {
this->getSimulator()->log() << add_indent << "Report empty";
}
@ -57,6 +57,8 @@ namespace interface {
Action(const _ReportType &report)
: report_(report)
Action(int report_id) : report_id_(report_id) {}
@ -54,6 +54,8 @@ namespace interface {
using ReportAction<_ReportType>::ActionBaseType;
Action(const std::function<bool(const _ReportType&)> &func)
this->getReport().dump(*this->getSimulator(), add_indent);
@ -42,6 +42,8 @@ namespace interface {
typedef Report_ ReportType;
typedef ReportAction_ ActionBaseType;
virtual ~ReportAction_() = default;
virtual uint8_t getReportTypeId() const {
return AnyTypeReportTypeId;
this->getSimulator()->log() << add_indent << "Any keycodes active";
this->getSimulator()->log() << add_indent << "Any modifiers active";
@ -77,6 +77,8 @@ namespace interface {
Action(const std::vector<uint8_t> &keycodes,
bool exclusively = false)
: keycodes_(keycodes),
@ -78,6 +78,9 @@ namespace interface {
Action(const std::vector<uint8_t> &modifiers,
: modifiers_(modifiers),