diff --git a/src/kaleidoscope/simulator/Executor.h b/src/kaleidoscope/simulator/Executor.h
index ebbcc758..9b3851a6 100644
--- a/src/kaleidoscope/simulator/Executor.h
+++ b/src/kaleidoscope/simulator/Executor.h
@@ -20,7 +20,7 @@
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace actions {
inline
@@ -34,7 +34,7 @@ uint8_t toKeycode(Key key) {
}
} // namespace actions
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
@@ -42,7 +42,7 @@ uint8_t toKeycode(Key key) {
#include "kaleidoscope/simulator/Framework.h"
#include "kaleidoscope/simulator/executor/Executor.h"
#include "kaleidoscope/simulator/executor/AglaisInterface.h"
-#include "kaleidoscope/simulator/framework/Visualization.h"
+#include "kaleidoscope/simulator/interface/Visualization.h"
#include "kaleidoscope/simulator/executor/actions/AssertLayerIsActive.h"
#include "kaleidoscope/simulator/executor/actions/AssertTopActiveLayerIs.h"
diff --git a/src/kaleidoscope/simulator/Framework.h b/src/kaleidoscope/simulator/Framework.h
deleted file mode 100644
index 2c7ecfcc..00000000
--- a/src/kaleidoscope/simulator/Framework.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/* -*- mode: c++ -*-
- * kaleidoscope::simulator - Testing API for Kaleidoscope
- * Copyright (C) 2019 noseglasses (shinynoseglasses@gmail.com)
- * Copyright (C) 2020 Keyboard.io, Inc
- *
- * This program is free software: you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation, version 3.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
- * details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program. If not, see .
- */
-
-#pragma once
-
-#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-
-#include "kaleidoscope/simulator/framework/Simulator.h"
-#include "kaleidoscope/simulator/framework/Visualization.h"
-#include "kaleidoscope/simulator/framework/LED_Checks.h"
-
-#include "kaleidoscope/simulator/framework/reports/BootKeyboardReport_.h"
-#include "kaleidoscope/simulator/framework/reports/KeyboardReport_.h"
-#include "kaleidoscope/simulator/framework/reports/MouseReport_.h"
-#include "kaleidoscope/simulator/framework/reports/AbsoluteMouseReport_.h"
-
-#include "kaleidoscope/simulator/framework/actions/Grouped.h"
-#include "kaleidoscope/simulator/framework/actions/CustomAction.h"
-#include "kaleidoscope/simulator/framework/actions/AssertNumOverallReportsEquals.h"
-#include "kaleidoscope/simulator/framework/actions/Action_.h"
-#include "kaleidoscope/simulator/framework/actions/AssertCycleIsNth.h"
-#include "kaleidoscope/simulator/framework/actions/AssertElapsedTimeGreater.h"
-
-#include "kaleidoscope/simulator/framework/actions/generic_report/AssertReportEmpty.h"
-#include "kaleidoscope/simulator/framework/actions/generic_report/AssertReportEquals.h"
-#include "kaleidoscope/simulator/framework/actions/generic_report/DumpReport.h"
-#include "kaleidoscope/simulator/framework/actions/generic_report/AssertReportIsNthInCycle.h"
-#include "kaleidoscope/simulator/framework/actions/generic_report/CustomReportAction.h"
-#include "kaleidoscope/simulator/framework/actions/generic_report/AssertCycleGeneratesNReports.h"
-
-#include "kaleidoscope/simulator/framework/actions/keyboard_report/AssertModifiersActive.h"
-#include "kaleidoscope/simulator/framework/actions/keyboard_report/AssertAnyKeycodeActive.h"
-#include "kaleidoscope/simulator/framework/actions/keyboard_report/AssertKeycodesActive.h"
-#include "kaleidoscope/simulator/framework/actions/keyboard_report/AssertAnyModifierActive.h"
-
-#endif
diff --git a/src/kaleidoscope/simulator/Interface.h b/src/kaleidoscope/simulator/Interface.h
new file mode 100644
index 00000000..399d0eb2
--- /dev/null
+++ b/src/kaleidoscope/simulator/Interface.h
@@ -0,0 +1,51 @@
+/* -*- mode: c++ -*-
+ * kaleidoscope::simulator - Testing API for Kaleidoscope
+ * Copyright (C) 2019 noseglasses (shinynoseglasses@gmail.com)
+ * Copyright (C) 2020 Keyboard.io, Inc
+ *
+ * This program is free software: you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation, version 3.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program. If not, see .
+ */
+
+#pragma once
+
+#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
+
+#include "kaleidoscope/simulator/interface/Simulator.h"
+#include "kaleidoscope/simulator/interface/Visualization.h"
+#include "kaleidoscope/simulator/interface/LED_Checks.h"
+
+#include "kaleidoscope/simulator/interface/reports/BootKeyboardReport_.h"
+#include "kaleidoscope/simulator/interface/reports/KeyboardReport_.h"
+#include "kaleidoscope/simulator/interface/reports/MouseReport_.h"
+#include "kaleidoscope/simulator/interface/reports/AbsoluteMouseReport_.h"
+
+#include "kaleidoscope/simulator/interface/actions/Grouped.h"
+#include "kaleidoscope/simulator/interface/actions/CustomAction.h"
+#include "kaleidoscope/simulator/interface/actions/AssertNumOverallReportsEquals.h"
+#include "kaleidoscope/simulator/interface/actions/Action_.h"
+#include "kaleidoscope/simulator/interface/actions/AssertCycleIsNth.h"
+#include "kaleidoscope/simulator/interface/actions/AssertElapsedTimeGreater.h"
+
+#include "kaleidoscope/simulator/interface/actions/generic_report/AssertReportEmpty.h"
+#include "kaleidoscope/simulator/interface/actions/generic_report/AssertReportEquals.h"
+#include "kaleidoscope/simulator/interface/actions/generic_report/DumpReport.h"
+#include "kaleidoscope/simulator/interface/actions/generic_report/AssertReportIsNthInCycle.h"
+#include "kaleidoscope/simulator/interface/actions/generic_report/CustomReportAction.h"
+#include "kaleidoscope/simulator/interface/actions/generic_report/AssertCycleGeneratesNReports.h"
+
+#include "kaleidoscope/simulator/interface/actions/keyboard_report/AssertModifiersActive.h"
+#include "kaleidoscope/simulator/interface/actions/keyboard_report/AssertAnyKeycodeActive.h"
+#include "kaleidoscope/simulator/interface/actions/keyboard_report/AssertKeycodesActive.h"
+#include "kaleidoscope/simulator/interface/actions/keyboard_report/AssertAnyModifierActive.h"
+
+#endif
diff --git a/src/kaleidoscope/simulator/executor/AglaisInterface.cpp b/src/kaleidoscope/simulator/executor/AglaisInterface.cpp
index 3c2b6298..b2e74830 100644
--- a/src/kaleidoscope/simulator/executor/AglaisInterface.cpp
+++ b/src/kaleidoscope/simulator/executor/AglaisInterface.cpp
@@ -25,8 +25,8 @@
#include "kaleidoscope/simulator/executor/reports/AbsoluteMouseReport.h"
#include "kaleidoscope/simulator/LogProtocol.h"
#include "kaleidoscope/simulator/log_protocol/Consumer_.h"
-#include "kaleidoscope/simulator/framework/actions/generic_report/AssertReportEquals.h"
-#include "kaleidoscope/simulator/framework/Simulator.h"
+#include "kaleidoscope/simulator/interface/actions/generic_report/AssertReportEquals.h"
+#include "kaleidoscope/simulator/interface/Simulator.h"
#include "HID-Settings.h"
namespace kaleidoscope {
@@ -38,7 +38,7 @@ namespace executor {
class SimulatorConsumerAdaptor : public log_protocol::Consumer_ {
public:
- SimulatorConsumerAdaptor(framework::Simulator &simulator)
+ SimulatorConsumerAdaptor(interface::Simulator &simulator)
: simulator_(simulator)
{}
@@ -93,28 +93,28 @@ class SimulatorConsumerAdaptor : public log_protocol::Consumer_ {
case HID_REPORTID_KEYBOARD: {
assert(length == sizeof(BootKeyboardReport::ReportDataType));
simulator_.reportActionsQueue().queue(
- framework::actions::AssertReportEquals {data}
+ interface::actions::AssertReportEquals {data}
);
}
break;
case HID_REPORTID_MOUSE_ABSOLUTE: {
assert(length == sizeof(AbsoluteMouseReport::ReportDataType));
simulator_.reportActionsQueue().queue(
- framework::actions::AssertReportEquals {data}
+ interface::actions::AssertReportEquals {data}
);
}
break;
case HID_REPORTID_MOUSE: {
assert(length == sizeof(MouseReport::ReportDataType));
simulator_.reportActionsQueue().queue(
- framework::actions::AssertReportEquals {data}
+ interface::actions::AssertReportEquals {data}
);
}
break;
case HID_REPORTID_NKRO_KEYBOARD: {
assert(length == sizeof(KeyboardReport::ReportDataType));
simulator_.reportActionsQueue().queue(
- framework::actions::AssertReportEquals {data}
+ interface::actions::AssertReportEquals {data}
);
}
break;
@@ -144,11 +144,11 @@ class SimulatorConsumerAdaptor : public log_protocol::Consumer_ {
private:
- framework::Simulator &simulator_;
+ interface::Simulator &simulator_;
};
-void processAglaisDocument(const char *code, framework::Simulator &simulator) {
+void processAglaisDocument(const char *code, interface::Simulator &simulator) {
auto rwqa_state = simulator.getErrorIfReportWithoutQueuedActions();
log_protocol::LogProtocol a;
diff --git a/src/kaleidoscope/simulator/executor/AglaisInterface.h b/src/kaleidoscope/simulator/executor/AglaisInterface.h
index 923b6e3f..f25f6f4b 100644
--- a/src/kaleidoscope/simulator/executor/AglaisInterface.h
+++ b/src/kaleidoscope/simulator/executor/AglaisInterface.h
@@ -22,13 +22,13 @@
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
class Simulator;
-} // namespace framework
+} // namespace interface
namespace executor {
-void processAglaisDocument(const char *code, framework::Simulator &sim);
+void processAglaisDocument(const char *code, interface::Simulator &sim);
} // namespace executor
} // namespace simulator
diff --git a/src/kaleidoscope/simulator/executor/Executor.cpp b/src/kaleidoscope/simulator/executor/Executor.cpp
index 3d5952ad..55279b3d 100644
--- a/src/kaleidoscope/simulator/executor/Executor.cpp
+++ b/src/kaleidoscope/simulator/executor/Executor.cpp
@@ -34,8 +34,7 @@ namespace kaleidoscope {
namespace simulator {
namespace executor {
-Executor::Executor(std::ostream &out)
- : framework::Simulator{out} {
+Executor::Executor(std::ostream &out) : interface::Simulator{out} {
this->setCore(
std::shared_ptr {
new SimulatorCore{}
diff --git a/src/kaleidoscope/simulator/executor/Executor.h b/src/kaleidoscope/simulator/executor/Executor.h
index 28e73b8c..78db024e 100644
--- a/src/kaleidoscope/simulator/executor/Executor.h
+++ b/src/kaleidoscope/simulator/executor/Executor.h
@@ -20,7 +20,7 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/Simulator.h"
+#include "kaleidoscope/simulator/interface/Simulator.h"
/// @namespace kaleidoscope
///
@@ -34,7 +34,7 @@ namespace executor {
/// @brief A Kaleidoscope specific simulator class.
///
-class Executor : public framework::Simulator {
+class Executor : public interface::Simulator {
public:
/// @brief Access the global simulator singleton.
diff --git a/src/kaleidoscope/simulator/executor/SimulatorCore.h b/src/kaleidoscope/simulator/executor/SimulatorCore.h
index 0132ea50..408470fa 100644
--- a/src/kaleidoscope/simulator/executor/SimulatorCore.h
+++ b/src/kaleidoscope/simulator/executor/SimulatorCore.h
@@ -20,7 +20,7 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/SimulatorCore_.h"
+#include "kaleidoscope/simulator/interface/SimulatorCore_.h"
namespace kaleidoscope {
namespace simulator {
@@ -28,7 +28,7 @@ namespace executor {
/// @brief A Kaleidoscope specific simulator core class.
///
-class SimulatorCore : public framework::SimulatorCore_ {
+class SimulatorCore : public interface::SimulatorCore_ {
public:
virtual void init() override;
diff --git a/src/kaleidoscope/simulator/executor/actions/AssertLayerIsActive.h b/src/kaleidoscope/simulator/executor/actions/AssertLayerIsActive.h
index fc84e210..f63b9ead 100644
--- a/src/kaleidoscope/simulator/executor/actions/AssertLayerIsActive.h
+++ b/src/kaleidoscope/simulator/executor/actions/AssertLayerIsActive.h
@@ -20,7 +20,7 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/actions/Action_.h"
+#include "kaleidoscope/simulator/interface/actions/Action_.h"
#include "kaleidoscope/layers.h"
@@ -45,7 +45,7 @@ class AssertLayerIsActive {
private:
- class Action : public framework::Action_ {
+ class Action : public interface::Action_ {
public:
diff --git a/src/kaleidoscope/simulator/executor/actions/AssertTopActiveLayerIs.h b/src/kaleidoscope/simulator/executor/actions/AssertTopActiveLayerIs.h
index 307fb1a8..20f2deeb 100644
--- a/src/kaleidoscope/simulator/executor/actions/AssertTopActiveLayerIs.h
+++ b/src/kaleidoscope/simulator/executor/actions/AssertTopActiveLayerIs.h
@@ -20,7 +20,7 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/actions/Action_.h"
+#include "kaleidoscope/simulator/interface/actions/Action_.h"
#include "kaleidoscope/layers.h"
@@ -44,7 +44,7 @@ class AssertTopActiveLayerIs {
private:
- class Action : public framework::Action_ {
+ class Action : public interface::Action_ {
public:
diff --git a/src/kaleidoscope/simulator/executor/actions/generic_report/GenerateHostEvent.cpp b/src/kaleidoscope/simulator/executor/actions/generic_report/GenerateHostEvent.cpp
index 2c8c4402..8c3c1ef8 100644
--- a/src/kaleidoscope/simulator/executor/actions/generic_report/GenerateHostEvent.cpp
+++ b/src/kaleidoscope/simulator/executor/actions/generic_report/GenerateHostEvent.cpp
@@ -23,7 +23,7 @@
#include "kaleidoscope/simulator/executor/reports/KeyboardReport.h"
#include "kaleidoscope/simulator/executor/reports/MouseReport.h"
#include "kaleidoscope/simulator/executor/reports/AbsoluteMouseReport.h"
-#include "kaleidoscope/simulator/framework/Simulator.h"
+#include "kaleidoscope/simulator/interface/Simulator.h"
#ifdef __unix__ /* __unix__ is usually defined by compilers targeting Unix systems */
@@ -82,7 +82,7 @@ class KeyboardReportEventCheck {
public:
- KeyboardReportEventCheck(const framework::Simulator &simulator,
+ KeyboardReportEventCheck(const interface::Simulator &simulator,
Display *display,
const KeyboardReport &previous_report,
const KeyboardReport ¤t_report)
@@ -140,7 +140,7 @@ class KeyboardReportEventCheck {
private:
- const framework::Simulator &simulator_;
+ const interface::Simulator &simulator_;
Display *display_;
const KeyboardReport::ReportDataType &previous_report_data_;
const KeyboardReport::ReportDataType ¤t_report_data_;
@@ -150,7 +150,7 @@ class BootKeyboardReportEventCheck {
public:
- BootKeyboardReportEventCheck(const framework::Simulator &simulator,
+ BootKeyboardReportEventCheck(const interface::Simulator &simulator,
Display *display,
const BootKeyboardReport &previous_report,
const BootKeyboardReport ¤t_report)
@@ -231,7 +231,7 @@ class BootKeyboardReportEventCheck {
private:
- const framework::Simulator &simulator_;
+ const interface::Simulator &simulator_;
Display *display_;
const BootKeyboardReport::ReportDataType &previous_report_data_;
const BootKeyboardReport::ReportDataType ¤t_report_data_;
diff --git a/src/kaleidoscope/simulator/executor/actions/generic_report/GenerateHostEvent.h b/src/kaleidoscope/simulator/executor/actions/generic_report/GenerateHostEvent.h
index e6e2eff3..8804138e 100644
--- a/src/kaleidoscope/simulator/executor/actions/generic_report/GenerateHostEvent.h
+++ b/src/kaleidoscope/simulator/executor/actions/generic_report/GenerateHostEvent.h
@@ -20,8 +20,8 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/actions/generic_report/ReportAction.h"
-#include "kaleidoscope/simulator/framework/reports/Report_.h"
+#include "kaleidoscope/simulator/interface/actions/generic_report/ReportAction.h"
+#include "kaleidoscope/simulator/interface/reports/Report_.h"
#include
@@ -55,7 +55,7 @@ class GenerateHostEvent {
private:
- class Action : public framework::ReportAction,
+ class Action : public interface::ReportAction,
public HostEventAction {
public:
diff --git a/src/kaleidoscope/simulator/executor/reports/AbsoluteMouseReport.cpp b/src/kaleidoscope/simulator/executor/reports/AbsoluteMouseReport.cpp
index 7d679f1a..db14e04d 100644
--- a/src/kaleidoscope/simulator/executor/reports/AbsoluteMouseReport.cpp
+++ b/src/kaleidoscope/simulator/executor/reports/AbsoluteMouseReport.cpp
@@ -19,7 +19,7 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
#include "kaleidoscope/simulator/executor/reports/AbsoluteMouseReport.h"
-#include "kaleidoscope/simulator/framework/Simulator.h"
+#include "kaleidoscope/simulator/interface/Simulator.h"
namespace kaleidoscope {
namespace simulator {
@@ -50,11 +50,11 @@ AbsoluteMouseReport::AbsoluteMouseReport(const void *data) {
this->setReportData(report_data);
}
-std::shared_ptr AbsoluteMouseReport::clone() const {
- return std::shared_ptr { new AbsoluteMouseReport{*this} };
+std::shared_ptr AbsoluteMouseReport::clone() const {
+ return std::shared_ptr { new AbsoluteMouseReport{*this} };
}
-bool AbsoluteMouseReport::equals(const framework::Report_ &other) const {
+bool AbsoluteMouseReport::equals(const interface::Report_ &other) const {
const AbsoluteMouseReport *other_amr =
dynamic_cast(&other);
@@ -104,7 +104,7 @@ bool AbsoluteMouseReport::isEmpty() const {
&& (report_data_.wheel == 0);
}
-void AbsoluteMouseReport::dump(const framework::Simulator &simulator, const char *add_indent) const {
+void AbsoluteMouseReport::dump(const interface::Simulator &simulator, const char *add_indent) const {
simulator.log() << add_indent << "Absolute mouse report content:";
simulator.log() << add_indent << " left button: " << this->isLeftButtonPressed();
simulator.log() << add_indent << " middle button: " << this->isMiddleButtonPressed();
diff --git a/src/kaleidoscope/simulator/executor/reports/AbsoluteMouseReport.h b/src/kaleidoscope/simulator/executor/reports/AbsoluteMouseReport.h
index e6c93142..8cbb4493 100644
--- a/src/kaleidoscope/simulator/executor/reports/AbsoluteMouseReport.h
+++ b/src/kaleidoscope/simulator/executor/reports/AbsoluteMouseReport.h
@@ -21,7 +21,7 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
#include "DeviceAPIs/AbsoluteMouseAPI.h"
-#include "kaleidoscope/simulator/framework/reports/AbsoluteMouseReport_.h"
+#include "kaleidoscope/simulator/interface/reports/AbsoluteMouseReport_.h"
// Undefine some macros defined by Arduino
//
@@ -40,7 +40,7 @@ class Simulator;
/// @brief An interface hat facilitates analyzing absolute mouse reports.
///
-class AbsoluteMouseReport : public framework::AbsoluteMouseReport_ {
+class AbsoluteMouseReport : public interface::AbsoluteMouseReport_ {
public:
@@ -74,13 +74,13 @@ class AbsoluteMouseReport : public framework::AbsoluteMouseReport_ {
AbsoluteMouseReport &operator=(const AbsoluteMouseReport &other);
- virtual std::shared_ptr clone() const override;
+ virtual std::shared_ptr clone() const override;
/// @brief Checks equality with another report.
/// @param other Another report to compare with.
/// @returns [bool] True if both reports are equal.
///
- virtual bool equals(const framework::Report_ &other) const override;
+ virtual bool equals(const interface::Report_ &other) const override;
/// @brief Checks if a set of buttons is pressed.
/// @param button_state The state of the mouse buttons to check.
@@ -133,7 +133,7 @@ class AbsoluteMouseReport : public framework::AbsoluteMouseReport_ {
/// to the simulator's log stream.
/// @param add_indent An additional indentation string.
///
- virtual void dump(const framework::Simulator &simulator, const char *add_indent = "") const override;
+ virtual void dump(const interface::Simulator &simulator, const char *add_indent = "") const override;
/// @brief Associates the object with new report data.
/// @param report_data The new report data struct.
diff --git a/src/kaleidoscope/simulator/executor/reports/BootKeyboardReport.cpp b/src/kaleidoscope/simulator/executor/reports/BootKeyboardReport.cpp
index 30bdefdf..9feb3374 100644
--- a/src/kaleidoscope/simulator/executor/reports/BootKeyboardReport.cpp
+++ b/src/kaleidoscope/simulator/executor/reports/BootKeyboardReport.cpp
@@ -26,8 +26,8 @@
#include "kaleidoscope/simulator/executor/reports/BootKeyboardReport.h"
#include "kaleidoscope/simulator/executor/aux/exceptions.h"
-#include "kaleidoscope/simulator/framework/Simulator.h"
-#include "kaleidoscope/simulator/framework/SimulatorCore_.h"
+#include "kaleidoscope/simulator/interface/Simulator.h"
+#include "kaleidoscope/simulator/interface/SimulatorCore_.h"
#include "MultiReport/Keyboard.h"
#include
@@ -54,13 +54,13 @@ BootKeyboardReport
this->setReportData(report_data);
}
-std::shared_ptr BootKeyboardReport::clone() const {
- return std::shared_ptr { new BootKeyboardReport{*this} };
+std::shared_ptr BootKeyboardReport::clone() const {
+ return std::shared_ptr { new BootKeyboardReport{*this} };
}
bool
BootKeyboardReport
-::equals(const framework::Report_ &other) const {
+::equals(const interface::Report_ &other) const {
const BootKeyboardReport *other_bkr =
dynamic_cast(&other);
@@ -171,7 +171,7 @@ BootKeyboardReport
if((bitfield) & 1<<7) stream << str7;
void
BootKeyboardReport
-::dump(const framework::Simulator &simulator, const char *add_indent) const {
+::dump(const interface::Simulator &simulator, const char *add_indent) const {
bool anything = false;
if (report_data_.modifiers) {
anything = true;
diff --git a/src/kaleidoscope/simulator/executor/reports/BootKeyboardReport.h b/src/kaleidoscope/simulator/executor/reports/BootKeyboardReport.h
index 9627f702..8af9f7a2 100644
--- a/src/kaleidoscope/simulator/executor/reports/BootKeyboardReport.h
+++ b/src/kaleidoscope/simulator/executor/reports/BootKeyboardReport.h
@@ -21,7 +21,7 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
#include "kaleidoscope/key_defs.h"
-#include "kaleidoscope/simulator/framework/reports/BootKeyboardReport_.h"
+#include "kaleidoscope/simulator/interface/reports/BootKeyboardReport_.h"
#include "BootKeyboard/BootKeyboard.h"
// Undefine some macros defined by Arduino
@@ -41,7 +41,7 @@ class Simulator;
/// @brief An interface hat facilitates analyzing boot keyboard reports.
///
-class BootKeyboardReport : public framework::BootKeyboardReport_ {
+class BootKeyboardReport : public interface::BootKeyboardReport_ {
public:
@@ -72,13 +72,13 @@ class BootKeyboardReport : public framework::BootKeyboardReport_ {
};
}
- virtual std::shared_ptr clone() const override;
+ virtual std::shared_ptr clone() const override;
/// @brief Checks equality with another key report.
/// @param other Another key report to compare with.
/// @returns [bool] True if both reports are equal.
///
- virtual bool equals(const framework::Report_ &other) const override;
+ virtual bool equals(const interface::Report_ &other) const override;
/// @brief Checks if a keycode is active in the keyboard report.
/// @param keycode The keycode to check for.
@@ -122,7 +122,7 @@ class BootKeyboardReport : public framework::BootKeyboardReport_ {
/// to the simulator's log stream.
/// @param add_indent An additional indentation string.
///
- virtual void dump(const framework::Simulator &simulator, const char *add_indent = "") const override;
+ virtual void dump(const interface::Simulator &simulator, const char *add_indent = "") const override;
/// @brief Associates the object with new report data.
/// @param report_data The new report data struct.
diff --git a/src/kaleidoscope/simulator/executor/reports/KeyboardReport.cpp b/src/kaleidoscope/simulator/executor/reports/KeyboardReport.cpp
index 4c79dd48..7a2d1a02 100644
--- a/src/kaleidoscope/simulator/executor/reports/KeyboardReport.cpp
+++ b/src/kaleidoscope/simulator/executor/reports/KeyboardReport.cpp
@@ -26,7 +26,7 @@
#include "kaleidoscope/simulator/executor/reports/KeyboardReport.h"
#include "kaleidoscope/simulator/executor/aux/exceptions.h"
-#include "kaleidoscope/simulator/framework/Simulator.h"
+#include "kaleidoscope/simulator/interface/Simulator.h"
#include
@@ -52,13 +52,13 @@ KeyboardReport
this->setReportData(report_data);
}
-std::shared_ptr KeyboardReport::clone() const {
- return std::shared_ptr { new KeyboardReport{*this} };
+std::shared_ptr KeyboardReport::clone() const {
+ return std::shared_ptr { new KeyboardReport{*this} };
}
bool
KeyboardReport
-::equals(const framework::Report_ &other) const {
+::equals(const interface::Report_ &other) const {
const KeyboardReport *other_kr =
dynamic_cast(&other);
@@ -174,7 +174,7 @@ KeyboardReport
void
KeyboardReport
-::dump(const framework::Simulator &simulator, const char *add_indent) const {
+::dump(const interface::Simulator &simulator, const char *add_indent) const {
bool anything = false;
if (report_data_.modifiers) anything = true;
else for (int i = 0; i < KEY_BYTES; i++) if (report_data_.keys[i]) {
diff --git a/src/kaleidoscope/simulator/executor/reports/KeyboardReport.h b/src/kaleidoscope/simulator/executor/reports/KeyboardReport.h
index 0eecc096..679a9484 100644
--- a/src/kaleidoscope/simulator/executor/reports/KeyboardReport.h
+++ b/src/kaleidoscope/simulator/executor/reports/KeyboardReport.h
@@ -23,7 +23,7 @@
#include
#include "kaleidoscope/key_defs.h"
-#include "kaleidoscope/simulator/framework/reports/KeyboardReport_.h"
+#include "kaleidoscope/simulator/interface/reports/KeyboardReport_.h"
#include "MultiReport/Keyboard.h"
// Undefine some macros defined by Arduino
@@ -43,7 +43,7 @@ class Simulator;
/// @brief An interface hat facilitates analyzing keyboard reports.
///
-class KeyboardReport : public framework::KeyboardReport_ {
+class KeyboardReport : public interface::KeyboardReport_ {
public:
@@ -74,13 +74,13 @@ class KeyboardReport : public framework::KeyboardReport_ {
};
}
- virtual std::shared_ptr clone() const override;
+ virtual std::shared_ptr clone() const override;
/// @brief Checks equality with another key report.
/// @param other Another key report to compare with.
/// @returns [bool] True if both reports are equal.
///
- virtual bool equals(const framework::Report_ &other) const override;
+ virtual bool equals(const interface::Report_ &other) const override;
/// @brief Checks if a keycode is active in the keyboard report.
/// @param keycode The keycode to check for.
@@ -124,7 +124,7 @@ class KeyboardReport : public framework::KeyboardReport_ {
/// to the simulator's log stream.
/// @param add_indent An additional indentation string.
///
- virtual void dump(const framework::Simulator &simulator, const char *add_indent = "") const override;
+ virtual void dump(const interface::Simulator &simulator, const char *add_indent = "") const override;
/// @brief Associates the object with new report data.
/// @param report_data The new report data struct.
diff --git a/src/kaleidoscope/simulator/executor/reports/MouseReport.cpp b/src/kaleidoscope/simulator/executor/reports/MouseReport.cpp
index a4c6979b..06239ab6 100644
--- a/src/kaleidoscope/simulator/executor/reports/MouseReport.cpp
+++ b/src/kaleidoscope/simulator/executor/reports/MouseReport.cpp
@@ -20,7 +20,7 @@
#include "kaleidoscope/simulator/executor/reports/MouseReport.h"
-#include "kaleidoscope/simulator/framework/Simulator.h"
+#include "kaleidoscope/simulator/interface/Simulator.h"
namespace kaleidoscope {
namespace simulator {
@@ -41,11 +41,11 @@ MouseReport::MouseReport(const void *data) {
this->setReportData(report_data);
}
-std::shared_ptr MouseReport::clone() const {
- return std::shared_ptr { new MouseReport{*this} };
+std::shared_ptr MouseReport::clone() const {
+ return std::shared_ptr { new MouseReport{*this} };
}
-bool MouseReport::equals(const framework::Report_ &other) const {
+bool MouseReport::equals(const interface::Report_ &other) const {
const MouseReport *other_mr =
dynamic_cast(&other);
@@ -96,7 +96,7 @@ bool MouseReport::isEmpty() const {
&& (report_data_.hWheel == 0);
}
-void MouseReport::dump(const framework::Simulator &simulator, const char *add_indent) const {
+void MouseReport::dump(const interface::Simulator &simulator, const char *add_indent) const {
simulator.log() << add_indent << "Mouse report content:";
simulator.log() << add_indent << " left button: " << this->isLeftButtonPressed();
simulator.log() << add_indent << " middle button: " << this->isMiddleButtonPressed();
diff --git a/src/kaleidoscope/simulator/executor/reports/MouseReport.h b/src/kaleidoscope/simulator/executor/reports/MouseReport.h
index 1bc9f2bb..b86dcf9e 100644
--- a/src/kaleidoscope/simulator/executor/reports/MouseReport.h
+++ b/src/kaleidoscope/simulator/executor/reports/MouseReport.h
@@ -21,7 +21,7 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
#include "MultiReport/Mouse.h"
-#include "kaleidoscope/simulator/framework/reports/MouseReport_.h"
+#include "kaleidoscope/simulator/interface/reports/MouseReport_.h"
// Undefine some macros defined by Arduino
//
@@ -40,7 +40,7 @@ class Simulator;
/// @brief An interface hat facilitates analyzing mouse reports.
///
-class MouseReport : public framework::MouseReport_ {
+class MouseReport : public interface::MouseReport_ {
public:
@@ -71,13 +71,13 @@ class MouseReport : public framework::MouseReport_ {
};
}
- virtual std::shared_ptr clone() const override;
+ virtual std::shared_ptr clone() const override;
/// @brief Checks equality with another report.
/// @param other Another report to compare with.
/// @returns [bool] True if both reports are equal.
///
- virtual bool equals(const framework::Report_ &other) const override;
+ virtual bool equals(const interface::Report_ &other) const override;
/// @brief Checks if a set of buttons is pressed.
/// @param button_state The state of the mouse buttons to check.
@@ -130,7 +130,7 @@ class MouseReport : public framework::MouseReport_ {
/// to the simulator's log stream.
/// @param add_indent An additional indentation string.
///
- virtual void dump(const framework::Simulator &simulator, const char *add_indent = "") const override;
+ virtual void dump(const interface::Simulator &simulator, const char *add_indent = "") const override;
/// @brief Associates the object with new report data.
/// @param report_data The new report data struct.
diff --git a/src/kaleidoscope/simulator/framework/ActionContainer.h b/src/kaleidoscope/simulator/interface/ActionContainer.h
similarity index 96%
rename from src/kaleidoscope/simulator/framework/ActionContainer.h
rename to src/kaleidoscope/simulator/interface/ActionContainer.h
index ac5e67f5..f063608b 100644
--- a/src/kaleidoscope/simulator/framework/ActionContainer.h
+++ b/src/kaleidoscope/simulator/interface/ActionContainer.h
@@ -20,8 +20,8 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/actions/Grouped.h"
-#include "kaleidoscope/simulator/framework/aux/demangle.h"
+#include "kaleidoscope/simulator/interface/actions/Grouped.h"
+#include "kaleidoscope/simulator/interface/aux/demangle.h"
// Undefine some macros that are defined by Arduino
#undef min
@@ -33,7 +33,7 @@
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
class Simulator;
@@ -161,7 +161,7 @@ class ActionContainer {
std::deque> container_;
};
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/ActionContainer_Impl.h b/src/kaleidoscope/simulator/interface/ActionContainer_Impl.h
similarity index 94%
rename from src/kaleidoscope/simulator/framework/ActionContainer_Impl.h
rename to src/kaleidoscope/simulator/interface/ActionContainer_Impl.h
index 64f3dea3..32ab3f8d 100644
--- a/src/kaleidoscope/simulator/framework/ActionContainer_Impl.h
+++ b/src/kaleidoscope/simulator/interface/ActionContainer_Impl.h
@@ -20,9 +20,9 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/ActionContainer.h"
-#include "kaleidoscope/simulator/framework/actions/Grouped.h"
-#include "kaleidoscope/simulator/framework/aux/demangle.h"
+#include "kaleidoscope/simulator/interface/ActionContainer.h"
+#include "kaleidoscope/simulator/interface/actions/Grouped.h"
+#include "kaleidoscope/simulator/interface/aux/demangle.h"
// Undefine some macros that are defined by Arduino
#undef min
@@ -34,7 +34,7 @@
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
template
ActionContainer<_ActionType> &
@@ -134,7 +134,7 @@ ActionContainer<_ActionType>
action->setSimulator(&simulator_);
}
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/ActionQueueAdaptor.h b/src/kaleidoscope/simulator/interface/ActionQueueAdaptor.h
similarity index 98%
rename from src/kaleidoscope/simulator/framework/ActionQueueAdaptor.h
rename to src/kaleidoscope/simulator/interface/ActionQueueAdaptor.h
index 665e3660..0c8af686 100644
--- a/src/kaleidoscope/simulator/framework/ActionQueueAdaptor.h
+++ b/src/kaleidoscope/simulator/interface/ActionQueueAdaptor.h
@@ -22,7 +22,7 @@
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
/// @brief An adaptor template that restricts access to
/// action containers.
@@ -96,7 +96,7 @@ class ActionQueueAdaptor {
_ContainerType &container_;
};
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/LED_Checks.cpp b/src/kaleidoscope/simulator/interface/LED_Checks.cpp
similarity index 93%
rename from src/kaleidoscope/simulator/framework/LED_Checks.cpp
rename to src/kaleidoscope/simulator/interface/LED_Checks.cpp
index fe293729..d4c471b4 100644
--- a/src/kaleidoscope/simulator/framework/LED_Checks.cpp
+++ b/src/kaleidoscope/simulator/interface/LED_Checks.cpp
@@ -18,15 +18,15 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/LED_Checks.h"
-#include "kaleidoscope/simulator/framework/Simulator.h"
-#include "kaleidoscope/simulator/framework/SimulatorCore_.h"
+#include "kaleidoscope/simulator/interface/LED_Checks.h"
+#include "kaleidoscope/simulator/interface/Simulator.h"
+#include "kaleidoscope/simulator/interface/SimulatorCore_.h"
#include
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
void dumpKeyLEDState(const Simulator &simulator) {
@@ -97,7 +97,7 @@ void assertKeyLEDState(const Simulator &simulator,
}
}
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/LED_Checks.h b/src/kaleidoscope/simulator/interface/LED_Checks.h
similarity index 96%
rename from src/kaleidoscope/simulator/framework/LED_Checks.h
rename to src/kaleidoscope/simulator/interface/LED_Checks.h
index d022c276..d35cc813 100644
--- a/src/kaleidoscope/simulator/framework/LED_Checks.h
+++ b/src/kaleidoscope/simulator/interface/LED_Checks.h
@@ -24,7 +24,7 @@
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
class Simulator;
@@ -40,7 +40,7 @@ void dumpKeyLEDState(const Simulator &simulator);
void assertKeyLEDState(const Simulator &simulator,
const uint8_t key_led_colors[][3]);
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/Simulator.cpp b/src/kaleidoscope/simulator/interface/Simulator.cpp
similarity index 97%
rename from src/kaleidoscope/simulator/framework/Simulator.cpp
rename to src/kaleidoscope/simulator/interface/Simulator.cpp
index 695192af..e1485ef3 100644
--- a/src/kaleidoscope/simulator/framework/Simulator.cpp
+++ b/src/kaleidoscope/simulator/interface/Simulator.cpp
@@ -20,11 +20,11 @@
#include "Arduino.h"
-#include "kaleidoscope/simulator/framework/Simulator.h"
-#include "kaleidoscope/simulator/framework/ActionContainer_Impl.h"
-#include "kaleidoscope/simulator/framework/actions/Action_.h"
-#include "kaleidoscope/simulator/framework/aux/WallTimer.h"
-#include "kaleidoscope/simulator/framework/SimulatorCore_.h"
+#include "kaleidoscope/simulator/interface/Simulator.h"
+#include "kaleidoscope/simulator/interface/ActionContainer_Impl.h"
+#include "kaleidoscope/simulator/interface/actions/Action_.h"
+#include "kaleidoscope/simulator/interface/aux/WallTimer.h"
+#include "kaleidoscope/simulator/interface/SimulatorCore_.h"
#include
#include
@@ -34,7 +34,7 @@
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
// Explicit template instanciations
//
@@ -661,7 +661,7 @@ void Simulator::runRemoteControlled(const std::function &cycle_callback,
thread_obj.join();
}
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/Simulator.h b/src/kaleidoscope/simulator/interface/Simulator.h
similarity index 97%
rename from src/kaleidoscope/simulator/framework/Simulator.h
rename to src/kaleidoscope/simulator/interface/Simulator.h
index f943f504..fe4c8eec 100644
--- a/src/kaleidoscope/simulator/framework/Simulator.h
+++ b/src/kaleidoscope/simulator/interface/Simulator.h
@@ -20,13 +20,13 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/ActionContainer.h"
-#include "kaleidoscope/simulator/framework/ActionQueueAdaptor.h"
-#include "kaleidoscope/simulator/framework/reports/BootKeyboardReport_.h"
-#include "kaleidoscope/simulator/framework/reports/KeyboardReport_.h"
-#include "kaleidoscope/simulator/framework/reports/MouseReport_.h"
-#include "kaleidoscope/simulator/framework/reports/AbsoluteMouseReport_.h"
-#include "kaleidoscope/simulator/framework/actions/generic_report/ReportAction.h"
+#include "kaleidoscope/simulator/interface/ActionContainer.h"
+#include "kaleidoscope/simulator/interface/ActionQueueAdaptor.h"
+#include "kaleidoscope/simulator/interface/reports/BootKeyboardReport_.h"
+#include "kaleidoscope/simulator/interface/reports/KeyboardReport_.h"
+#include "kaleidoscope/simulator/interface/reports/MouseReport_.h"
+#include "kaleidoscope/simulator/interface/reports/AbsoluteMouseReport_.h"
+#include "kaleidoscope/simulator/interface/actions/generic_report/ReportAction.h"
#include
#include
@@ -35,7 +35,7 @@
///
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
class Simulator;
class SimulatorCore_;
@@ -866,7 +866,7 @@ class Simulator {
#define SIMULATOR_ASSERT_CONDITION(SIMULATOR, ...) \
SIMULATOR.assertCondition((__VA_ARGS__), #__VA_ARGS__)
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/SimulatorCore_.h b/src/kaleidoscope/simulator/interface/SimulatorCore_.h
similarity index 98%
rename from src/kaleidoscope/simulator/framework/SimulatorCore_.h
rename to src/kaleidoscope/simulator/interface/SimulatorCore_.h
index 2de38f0c..3c992557 100644
--- a/src/kaleidoscope/simulator/framework/SimulatorCore_.h
+++ b/src/kaleidoscope/simulator/interface/SimulatorCore_.h
@@ -25,7 +25,7 @@
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
/// @brief An interface to a specific keyboard.
///
@@ -112,7 +112,7 @@ class SimulatorCore_ {
virtual void loop() = 0;
};
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/Visualization.cpp b/src/kaleidoscope/simulator/interface/Visualization.cpp
similarity index 93%
rename from src/kaleidoscope/simulator/framework/Visualization.cpp
rename to src/kaleidoscope/simulator/interface/Visualization.cpp
index d5006715..22f6ef0e 100644
--- a/src/kaleidoscope/simulator/framework/Visualization.cpp
+++ b/src/kaleidoscope/simulator/interface/Visualization.cpp
@@ -18,10 +18,10 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/Visualization.h"
-#include "kaleidoscope/simulator/framework/Simulator.h"
-#include "kaleidoscope/simulator/framework/SimulatorCore_.h"
-#include "kaleidoscope/simulator/framework/aux/terminal_escape_sequences.h"
+#include "kaleidoscope/simulator/interface/Visualization.h"
+#include "kaleidoscope/simulator/interface/Simulator.h"
+#include "kaleidoscope/simulator/interface/SimulatorCore_.h"
+#include "kaleidoscope/simulator/interface/aux/terminal_escape_sequences.h"
// Undef those stupid Arduino-macros conflicting with stl stuff
//
@@ -35,7 +35,7 @@
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
typedef std::map KeyAddrToKeyString;
@@ -150,7 +150,7 @@ void renderKeyboard(const Simulator &simulator, const char *ascii_keyboard) {
}
}
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/Visualization.h b/src/kaleidoscope/simulator/interface/Visualization.h
similarity index 96%
rename from src/kaleidoscope/simulator/framework/Visualization.h
rename to src/kaleidoscope/simulator/interface/Visualization.h
index 37bd577f..bdd05395 100644
--- a/src/kaleidoscope/simulator/framework/Visualization.h
+++ b/src/kaleidoscope/simulator/interface/Visualization.h
@@ -22,7 +22,7 @@
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
class Simulator;
@@ -34,7 +34,7 @@ class Simulator;
///
void renderKeyboard(const Simulator &simulator, const char *ascii_keyboard);
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/actions/Action_.cpp b/src/kaleidoscope/simulator/interface/actions/Action_.cpp
similarity index 89%
rename from src/kaleidoscope/simulator/framework/actions/Action_.cpp
rename to src/kaleidoscope/simulator/interface/actions/Action_.cpp
index 162c9593..a925f94b 100644
--- a/src/kaleidoscope/simulator/framework/actions/Action_.cpp
+++ b/src/kaleidoscope/simulator/interface/actions/Action_.cpp
@@ -18,13 +18,13 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/actions/Action_.h"
-#include "kaleidoscope/simulator/framework/aux/demangle.h"
-#include "kaleidoscope/simulator/framework/Simulator.h"
+#include "kaleidoscope/simulator/interface/actions/Action_.h"
+#include "kaleidoscope/simulator/interface/aux/demangle.h"
+#include "kaleidoscope/simulator/interface/Simulator.h"
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
void Action_::report(const char *add_indent) const {
if (this->valid_) {
@@ -62,7 +62,7 @@ void Action_::describeState(const char *add_indent) const {
}
}
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/actions/Action_.h b/src/kaleidoscope/simulator/interface/actions/Action_.h
similarity index 99%
rename from src/kaleidoscope/simulator/framework/actions/Action_.h
rename to src/kaleidoscope/simulator/interface/actions/Action_.h
index a4286e49..c3285e09 100644
--- a/src/kaleidoscope/simulator/framework/actions/Action_.h
+++ b/src/kaleidoscope/simulator/interface/actions/Action_.h
@@ -29,7 +29,7 @@
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
class Simulator;
class Report_;
@@ -183,7 +183,7 @@ auto unwrapAction(const _T &action) -> decltype(action.ptr()) {
return action.ptr();
}
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/actions/AssertCycleIsNth.h b/src/kaleidoscope/simulator/interface/actions/AssertCycleIsNth.h
similarity index 94%
rename from src/kaleidoscope/simulator/framework/actions/AssertCycleIsNth.h
rename to src/kaleidoscope/simulator/interface/actions/AssertCycleIsNth.h
index fab2bb02..215d57d6 100644
--- a/src/kaleidoscope/simulator/framework/actions/AssertCycleIsNth.h
+++ b/src/kaleidoscope/simulator/interface/actions/AssertCycleIsNth.h
@@ -20,11 +20,11 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/actions/Action_.h"
+#include "kaleidoscope/simulator/interface/actions/Action_.h"
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace actions {
/// @brief Asserts that the current cycle is the nth.
@@ -71,7 +71,7 @@ class AssertCycleIsNth {
};
} // namespace actions
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/actions/AssertElapsedTimeGreater.h b/src/kaleidoscope/simulator/interface/actions/AssertElapsedTimeGreater.h
similarity index 93%
rename from src/kaleidoscope/simulator/framework/actions/AssertElapsedTimeGreater.h
rename to src/kaleidoscope/simulator/interface/actions/AssertElapsedTimeGreater.h
index 46b1f26c..34cb81b4 100644
--- a/src/kaleidoscope/simulator/framework/actions/AssertElapsedTimeGreater.h
+++ b/src/kaleidoscope/simulator/interface/actions/AssertElapsedTimeGreater.h
@@ -20,12 +20,12 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/actions/Action_.h"
-#include "kaleidoscope/simulator/framework/Simulator.h"
+#include "kaleidoscope/simulator/interface/actions/Action_.h"
+#include "kaleidoscope/simulator/interface/Simulator.h"
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace actions {
/// @brief Asserts that that time that elapsed is greater than a given time in [ms].
@@ -76,7 +76,7 @@ class AssertElapsedTimeGreater {
};
} // namespace actions
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/actions/AssertNumOverallReportsEquals.h b/src/kaleidoscope/simulator/interface/actions/AssertNumOverallReportsEquals.h
similarity index 95%
rename from src/kaleidoscope/simulator/framework/actions/AssertNumOverallReportsEquals.h
rename to src/kaleidoscope/simulator/interface/actions/AssertNumOverallReportsEquals.h
index ed16bcc1..5185485a 100644
--- a/src/kaleidoscope/simulator/framework/actions/AssertNumOverallReportsEquals.h
+++ b/src/kaleidoscope/simulator/interface/actions/AssertNumOverallReportsEquals.h
@@ -20,11 +20,11 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/actions/Action_.h"
+#include "kaleidoscope/simulator/interface/actions/Action_.h"
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace actions {
/// @brief Checks the number of overall reports of a specific type.
@@ -74,7 +74,7 @@ class AssertNumOverallReportsEquals {
};
} // namespace actions
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/actions/CustomAction.h b/src/kaleidoscope/simulator/interface/actions/CustomAction.h
similarity index 95%
rename from src/kaleidoscope/simulator/framework/actions/CustomAction.h
rename to src/kaleidoscope/simulator/interface/actions/CustomAction.h
index cbd9c94a..81f78549 100644
--- a/src/kaleidoscope/simulator/framework/actions/CustomAction.h
+++ b/src/kaleidoscope/simulator/interface/actions/CustomAction.h
@@ -20,13 +20,13 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/actions/Action_.h"
+#include "kaleidoscope/simulator/interface/actions/Action_.h"
#include
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace actions {
/// @brief Executes a lambda function of type bool(const Simulator &).
@@ -75,7 +75,7 @@ class CustomAction {
};
} // namespace actions
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/actions/Grouped.cpp b/src/kaleidoscope/simulator/interface/actions/Grouped.cpp
similarity index 90%
rename from src/kaleidoscope/simulator/framework/actions/Grouped.cpp
rename to src/kaleidoscope/simulator/interface/actions/Grouped.cpp
index 232c9d2e..c1f2c0fb 100644
--- a/src/kaleidoscope/simulator/framework/actions/Grouped.cpp
+++ b/src/kaleidoscope/simulator/interface/actions/Grouped.cpp
@@ -18,12 +18,12 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/actions/Grouped.h"
-#include "kaleidoscope/simulator/framework/Simulator.h"
+#include "kaleidoscope/simulator/interface/actions/Grouped.h"
+#include "kaleidoscope/simulator/interface/Simulator.h"
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace actions {
void Grouped::Action::determineGroupType() {
@@ -47,7 +47,7 @@ void Grouped::Action::determineGroupType() {
}
}
} // namespace actions
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/actions/Grouped.h b/src/kaleidoscope/simulator/interface/actions/Grouped.h
similarity index 96%
rename from src/kaleidoscope/simulator/framework/actions/Grouped.h
rename to src/kaleidoscope/simulator/interface/actions/Grouped.h
index d3ea3f18..5a0cf349 100644
--- a/src/kaleidoscope/simulator/framework/actions/Grouped.h
+++ b/src/kaleidoscope/simulator/interface/actions/Grouped.h
@@ -20,9 +20,9 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/Simulator.h"
-#include "kaleidoscope/simulator/framework/actions/Action_.h"
-#include "kaleidoscope/simulator/framework/actions/generic_report/ReportAction.h"
+#include "kaleidoscope/simulator/interface/Simulator.h"
+#include "kaleidoscope/simulator/interface/actions/Action_.h"
+#include "kaleidoscope/simulator/interface/actions/generic_report/ReportAction.h"
#include
@@ -32,7 +32,7 @@
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace actions {
/// @private
@@ -236,7 +236,7 @@ Grouped group_(ReportAction_ &action_dummy, const std::shared_ptr
}
} // namespace actions
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/actions/generic_report/AssertCycleGeneratesNReports.h b/src/kaleidoscope/simulator/interface/actions/generic_report/AssertCycleGeneratesNReports.h
similarity index 93%
rename from src/kaleidoscope/simulator/framework/actions/generic_report/AssertCycleGeneratesNReports.h
rename to src/kaleidoscope/simulator/interface/actions/generic_report/AssertCycleGeneratesNReports.h
index 3f6f826d..b41c15fa 100644
--- a/src/kaleidoscope/simulator/framework/actions/generic_report/AssertCycleGeneratesNReports.h
+++ b/src/kaleidoscope/simulator/interface/actions/generic_report/AssertCycleGeneratesNReports.h
@@ -20,12 +20,12 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/actions/Action_.h"
-#include "kaleidoscope/simulator/framework/Simulator.h"
+#include "kaleidoscope/simulator/interface/actions/Action_.h"
+#include "kaleidoscope/simulator/interface/Simulator.h"
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace actions {
/// @brief Asserts that there was a specific number of reports of a given
@@ -73,7 +73,7 @@ class AssertCycleGeneratesNReports {
};
} // namespace actions
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/actions/generic_report/AssertReportEmpty.h b/src/kaleidoscope/simulator/interface/actions/generic_report/AssertReportEmpty.h
similarity index 94%
rename from src/kaleidoscope/simulator/framework/actions/generic_report/AssertReportEmpty.h
rename to src/kaleidoscope/simulator/interface/actions/generic_report/AssertReportEmpty.h
index 7ac4d50c..50264c5b 100644
--- a/src/kaleidoscope/simulator/framework/actions/generic_report/AssertReportEmpty.h
+++ b/src/kaleidoscope/simulator/interface/actions/generic_report/AssertReportEmpty.h
@@ -20,11 +20,11 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/actions/generic_report/ReportAction.h"
+#include "kaleidoscope/simulator/interface/actions/generic_report/ReportAction.h"
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace actions {
/// @brief Asserts that the current report is empty.
@@ -59,7 +59,7 @@ class AssertReportEmpty {
};
} // namespace actions
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/actions/generic_report/AssertReportEquals.h b/src/kaleidoscope/simulator/interface/actions/generic_report/AssertReportEquals.h
similarity index 94%
rename from src/kaleidoscope/simulator/framework/actions/generic_report/AssertReportEquals.h
rename to src/kaleidoscope/simulator/interface/actions/generic_report/AssertReportEquals.h
index 04a5ff0c..3861dbcc 100644
--- a/src/kaleidoscope/simulator/framework/actions/generic_report/AssertReportEquals.h
+++ b/src/kaleidoscope/simulator/interface/actions/generic_report/AssertReportEquals.h
@@ -20,12 +20,12 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/actions/generic_report/ReportAction.h"
-#include "kaleidoscope/simulator/framework/Simulator.h"
+#include "kaleidoscope/simulator/interface/actions/generic_report/ReportAction.h"
+#include "kaleidoscope/simulator/interface/Simulator.h"
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace actions {
/// @brief Asserts that the current report equals another report.
@@ -93,7 +93,7 @@ class AssertReportEquals {
};
} // namespace actions
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/actions/generic_report/AssertReportIsNthInCycle.h b/src/kaleidoscope/simulator/interface/actions/generic_report/AssertReportIsNthInCycle.h
similarity index 95%
rename from src/kaleidoscope/simulator/framework/actions/generic_report/AssertReportIsNthInCycle.h
rename to src/kaleidoscope/simulator/interface/actions/generic_report/AssertReportIsNthInCycle.h
index 09b5fe1c..0a163be9 100644
--- a/src/kaleidoscope/simulator/framework/actions/generic_report/AssertReportIsNthInCycle.h
+++ b/src/kaleidoscope/simulator/interface/actions/generic_report/AssertReportIsNthInCycle.h
@@ -20,11 +20,11 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/actions/generic_report/ReportAction.h"
+#include "kaleidoscope/simulator/interface/actions/generic_report/ReportAction.h"
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace actions {
/// @brief Asserts that the current report is the nth report in the current cycle.
@@ -70,7 +70,7 @@ class AssertReportIsNthInCycle {
};
} // namespace actions
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/actions/generic_report/CustomReportAction.h b/src/kaleidoscope/simulator/interface/actions/generic_report/CustomReportAction.h
similarity index 95%
rename from src/kaleidoscope/simulator/framework/actions/generic_report/CustomReportAction.h
rename to src/kaleidoscope/simulator/interface/actions/generic_report/CustomReportAction.h
index f0bc93f0..bf90fa39 100644
--- a/src/kaleidoscope/simulator/framework/actions/generic_report/CustomReportAction.h
+++ b/src/kaleidoscope/simulator/interface/actions/generic_report/CustomReportAction.h
@@ -20,13 +20,13 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/actions/generic_report/ReportAction.h"
+#include "kaleidoscope/simulator/interface/actions/generic_report/ReportAction.h"
#include
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace actions {
/// @brief Executes a lambda function of type bool(const _ReportType&).
@@ -81,7 +81,7 @@ class CustomReportAction {
};
} // namespace actions
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/actions/generic_report/DumpReport.h b/src/kaleidoscope/simulator/interface/actions/generic_report/DumpReport.h
similarity index 93%
rename from src/kaleidoscope/simulator/framework/actions/generic_report/DumpReport.h
rename to src/kaleidoscope/simulator/interface/actions/generic_report/DumpReport.h
index c29eadef..1947e0d9 100644
--- a/src/kaleidoscope/simulator/framework/actions/generic_report/DumpReport.h
+++ b/src/kaleidoscope/simulator/interface/actions/generic_report/DumpReport.h
@@ -20,11 +20,11 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/actions/generic_report/ReportAction.h"
+#include "kaleidoscope/simulator/interface/actions/generic_report/ReportAction.h"
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace actions {
/// @brief Asserts nothing but dumps the current report instead.
@@ -60,7 +60,7 @@ class DumpReport {
};
} // namespace actions
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/actions/generic_report/ReportAction.h b/src/kaleidoscope/simulator/interface/actions/generic_report/ReportAction.h
similarity index 93%
rename from src/kaleidoscope/simulator/framework/actions/generic_report/ReportAction.h
rename to src/kaleidoscope/simulator/interface/actions/generic_report/ReportAction.h
index 818eeeea..cf3bd875 100644
--- a/src/kaleidoscope/simulator/framework/actions/generic_report/ReportAction.h
+++ b/src/kaleidoscope/simulator/interface/actions/generic_report/ReportAction.h
@@ -20,14 +20,14 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/actions/Action_.h"
-#include "kaleidoscope/simulator/framework/reports/Report_.h"
+#include "kaleidoscope/simulator/interface/actions/Action_.h"
+#include "kaleidoscope/simulator/interface/reports/Report_.h"
#include
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
/// @brief An abstract report action.
/// @details This abstract class serves as base class for any
@@ -93,7 +93,7 @@ class ReportAction : public ReportAction_ {
}
};
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/actions/keyboard_report/AssertAnyKeycodeActive.h b/src/kaleidoscope/simulator/interface/actions/keyboard_report/AssertAnyKeycodeActive.h
similarity index 94%
rename from src/kaleidoscope/simulator/framework/actions/keyboard_report/AssertAnyKeycodeActive.h
rename to src/kaleidoscope/simulator/interface/actions/keyboard_report/AssertAnyKeycodeActive.h
index 9fc4cc3a..265d31b7 100644
--- a/src/kaleidoscope/simulator/framework/actions/keyboard_report/AssertAnyKeycodeActive.h
+++ b/src/kaleidoscope/simulator/interface/actions/keyboard_report/AssertAnyKeycodeActive.h
@@ -20,11 +20,11 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/actions/generic_report/ReportAction.h"
+#include "kaleidoscope/simulator/interface/actions/generic_report/ReportAction.h"
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace actions {
/// @brief Asserts that any keycodes are active in the current report.
@@ -59,7 +59,7 @@ class AssertAnyKeycodeActive {
};
} // namespace actions
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/actions/keyboard_report/AssertAnyModifierActive.h b/src/kaleidoscope/simulator/interface/actions/keyboard_report/AssertAnyModifierActive.h
similarity index 94%
rename from src/kaleidoscope/simulator/framework/actions/keyboard_report/AssertAnyModifierActive.h
rename to src/kaleidoscope/simulator/interface/actions/keyboard_report/AssertAnyModifierActive.h
index bc279530..085f28f2 100644
--- a/src/kaleidoscope/simulator/framework/actions/keyboard_report/AssertAnyModifierActive.h
+++ b/src/kaleidoscope/simulator/interface/actions/keyboard_report/AssertAnyModifierActive.h
@@ -20,11 +20,11 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/actions/generic_report/ReportAction.h"
+#include "kaleidoscope/simulator/interface/actions/generic_report/ReportAction.h"
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace actions {
/// @brief Asserts that any modifiers are active in the current keyboard report.
@@ -59,7 +59,7 @@ class AssertAnyModifierActive {
};
} // namespace actions
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/actions/keyboard_report/AssertKeycodesActive.h b/src/kaleidoscope/simulator/interface/actions/keyboard_report/AssertKeycodesActive.h
similarity index 96%
rename from src/kaleidoscope/simulator/framework/actions/keyboard_report/AssertKeycodesActive.h
rename to src/kaleidoscope/simulator/interface/actions/keyboard_report/AssertKeycodesActive.h
index 4ce05d9f..264e2a57 100644
--- a/src/kaleidoscope/simulator/framework/actions/keyboard_report/AssertKeycodesActive.h
+++ b/src/kaleidoscope/simulator/interface/actions/keyboard_report/AssertKeycodesActive.h
@@ -20,12 +20,12 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/actions/generic_report/ReportAction.h"
-#include "kaleidoscope/simulator/framework/SimulatorCore_.h"
+#include "kaleidoscope/simulator/interface/actions/generic_report/ReportAction.h"
+#include "kaleidoscope/simulator/interface/SimulatorCore_.h"
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace actions {
/// @brief Overload this function if you intent to use any other data type
@@ -168,7 +168,7 @@ class AssertKeycodesActive {
};
} // namespace actions
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/actions/keyboard_report/AssertModifiersActive.h b/src/kaleidoscope/simulator/interface/actions/keyboard_report/AssertModifiersActive.h
similarity index 96%
rename from src/kaleidoscope/simulator/framework/actions/keyboard_report/AssertModifiersActive.h
rename to src/kaleidoscope/simulator/interface/actions/keyboard_report/AssertModifiersActive.h
index 67702177..54a52392 100644
--- a/src/kaleidoscope/simulator/framework/actions/keyboard_report/AssertModifiersActive.h
+++ b/src/kaleidoscope/simulator/interface/actions/keyboard_report/AssertModifiersActive.h
@@ -20,14 +20,14 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/actions/generic_report/ReportAction.h"
-#include "kaleidoscope/simulator/framework/SimulatorCore_.h"
+#include "kaleidoscope/simulator/interface/actions/generic_report/ReportAction.h"
+#include "kaleidoscope/simulator/interface/SimulatorCore_.h"
#include
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace actions {
/// @brief Overload this function if you intent to use any other data type
@@ -169,7 +169,7 @@ class AssertModifiersActive {
};
} // namespace actions
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/aux/WallTimer.cpp b/src/kaleidoscope/simulator/interface/aux/WallTimer.cpp
similarity index 92%
rename from src/kaleidoscope/simulator/framework/aux/WallTimer.cpp
rename to src/kaleidoscope/simulator/interface/aux/WallTimer.cpp
index 3210aa14..30170cbb 100644
--- a/src/kaleidoscope/simulator/framework/aux/WallTimer.cpp
+++ b/src/kaleidoscope/simulator/interface/aux/WallTimer.cpp
@@ -18,11 +18,11 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/aux/WallTimer.h"
+#include "kaleidoscope/simulator/interface/aux/WallTimer.h"
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace aux {
void WallTimer::start() {
@@ -36,7 +36,7 @@ double WallTimer::elapsed() {
}
} // namespace aux
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/aux/WallTimer.h b/src/kaleidoscope/simulator/interface/aux/WallTimer.h
similarity index 96%
rename from src/kaleidoscope/simulator/framework/aux/WallTimer.h
rename to src/kaleidoscope/simulator/interface/aux/WallTimer.h
index e32086f8..9b8ce353 100644
--- a/src/kaleidoscope/simulator/framework/aux/WallTimer.h
+++ b/src/kaleidoscope/simulator/interface/aux/WallTimer.h
@@ -24,7 +24,7 @@
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace aux {
class WallTimer {
@@ -41,7 +41,7 @@ class WallTimer {
};
} // namespace aux
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/aux/demangle.cpp b/src/kaleidoscope/simulator/interface/aux/demangle.cpp
similarity index 93%
rename from src/kaleidoscope/simulator/framework/aux/demangle.cpp
rename to src/kaleidoscope/simulator/interface/aux/demangle.cpp
index 2e7c3086..a271bf11 100644
--- a/src/kaleidoscope/simulator/framework/aux/demangle.cpp
+++ b/src/kaleidoscope/simulator/interface/aux/demangle.cpp
@@ -18,7 +18,7 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/aux/demangle.h"
+#include "kaleidoscope/simulator/interface/aux/demangle.h"
#ifdef __GNUG__
#include
#include
@@ -27,7 +27,7 @@
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace aux {
#ifdef __GNUG__
@@ -54,7 +54,7 @@ std::string demangle(const char* name) {
#endif
} // namespace aux
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/aux/demangle.h b/src/kaleidoscope/simulator/interface/aux/demangle.h
similarity index 96%
rename from src/kaleidoscope/simulator/framework/aux/demangle.h
rename to src/kaleidoscope/simulator/interface/aux/demangle.h
index 4e8dd9cd..3f979bac 100644
--- a/src/kaleidoscope/simulator/framework/aux/demangle.h
+++ b/src/kaleidoscope/simulator/interface/aux/demangle.h
@@ -25,7 +25,7 @@
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace aux {
/// @brief Demangles a C++ symbol name.
@@ -40,7 +40,7 @@ std::string type(const T& t) {
}
} // namespace aux
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/aux/terminal_escape_sequences.h b/src/kaleidoscope/simulator/interface/aux/terminal_escape_sequences.h
similarity index 96%
rename from src/kaleidoscope/simulator/framework/aux/terminal_escape_sequences.h
rename to src/kaleidoscope/simulator/interface/aux/terminal_escape_sequences.h
index 79ddcb32..be9876aa 100644
--- a/src/kaleidoscope/simulator/framework/aux/terminal_escape_sequences.h
+++ b/src/kaleidoscope/simulator/interface/aux/terminal_escape_sequences.h
@@ -22,7 +22,7 @@
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace terminal_escape_sequences {
constexpr char reset_formatting[] = "\x1B[0m";
@@ -31,7 +31,7 @@ constexpr char clear_screen[] = "\033[2J\033[1;1H";
constexpr char cursor_to_upper_left[] = "\x1B[0;0H";
} // namespace terminal_escape_sequences
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/reports/AbsoluteMouseReport_.h b/src/kaleidoscope/simulator/interface/reports/AbsoluteMouseReport_.h
similarity index 96%
rename from src/kaleidoscope/simulator/framework/reports/AbsoluteMouseReport_.h
rename to src/kaleidoscope/simulator/interface/reports/AbsoluteMouseReport_.h
index af4f9809..1965f1aa 100644
--- a/src/kaleidoscope/simulator/framework/reports/AbsoluteMouseReport_.h
+++ b/src/kaleidoscope/simulator/interface/reports/AbsoluteMouseReport_.h
@@ -20,7 +20,7 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/reports/Report_.h"
+#include "kaleidoscope/simulator/interface/reports/Report_.h"
// Undefine some macros defined by Arduino
//
@@ -32,7 +32,7 @@
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
class Simulator;
@@ -95,7 +95,7 @@ class AbsoluteMouseReport_ : public Report_ {
}
};
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/reports/BootKeyboardReport_.h b/src/kaleidoscope/simulator/interface/reports/BootKeyboardReport_.h
similarity index 96%
rename from src/kaleidoscope/simulator/framework/reports/BootKeyboardReport_.h
rename to src/kaleidoscope/simulator/interface/reports/BootKeyboardReport_.h
index 13345bb4..13c191b4 100644
--- a/src/kaleidoscope/simulator/framework/reports/BootKeyboardReport_.h
+++ b/src/kaleidoscope/simulator/interface/reports/BootKeyboardReport_.h
@@ -20,7 +20,7 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/reports/Report_.h"
+#include "kaleidoscope/simulator/interface/reports/Report_.h"
// Undefine some macros defined by Arduino
//
@@ -33,7 +33,7 @@
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
class Simulator;
@@ -88,7 +88,7 @@ class BootKeyboardReport_ : public Report_ {
}
};
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/reports/KeyboardReport_.h b/src/kaleidoscope/simulator/interface/reports/KeyboardReport_.h
similarity index 96%
rename from src/kaleidoscope/simulator/framework/reports/KeyboardReport_.h
rename to src/kaleidoscope/simulator/interface/reports/KeyboardReport_.h
index b19a22c9..c8541a8b 100644
--- a/src/kaleidoscope/simulator/framework/reports/KeyboardReport_.h
+++ b/src/kaleidoscope/simulator/interface/reports/KeyboardReport_.h
@@ -20,7 +20,7 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/reports/Report_.h"
+#include "kaleidoscope/simulator/interface/reports/Report_.h"
// Undefine some macros defined by Arduino
//
@@ -33,7 +33,7 @@
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
class Simulator;
@@ -88,7 +88,7 @@ class KeyboardReport_ : public Report_ {
}
};
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/reports/MouseReport_.h b/src/kaleidoscope/simulator/interface/reports/MouseReport_.h
similarity index 96%
rename from src/kaleidoscope/simulator/framework/reports/MouseReport_.h
rename to src/kaleidoscope/simulator/interface/reports/MouseReport_.h
index df96a609..3a4e11b5 100644
--- a/src/kaleidoscope/simulator/framework/reports/MouseReport_.h
+++ b/src/kaleidoscope/simulator/interface/reports/MouseReport_.h
@@ -20,7 +20,7 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/reports/Report_.h"
+#include "kaleidoscope/simulator/interface/reports/Report_.h"
// Undefine some macros defined by Arduino
//
@@ -32,7 +32,7 @@
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
class Simulator;
@@ -95,7 +95,7 @@ class MouseReport_ : public Report_ {
};
};
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/reports/Report_.h b/src/kaleidoscope/simulator/interface/reports/Report_.h
similarity index 98%
rename from src/kaleidoscope/simulator/framework/reports/Report_.h
rename to src/kaleidoscope/simulator/interface/reports/Report_.h
index b35b6b21..56a609c7 100644
--- a/src/kaleidoscope/simulator/framework/reports/Report_.h
+++ b/src/kaleidoscope/simulator/interface/reports/Report_.h
@@ -32,7 +32,7 @@
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
class Simulator;
@@ -84,7 +84,7 @@ class Report_ {
}
};
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/vendors/keyboardio/model01.cpp b/src/kaleidoscope/simulator/interface/vendors/keyboardio/model01.cpp
similarity index 97%
rename from src/kaleidoscope/simulator/framework/vendors/keyboardio/model01.cpp
rename to src/kaleidoscope/simulator/interface/vendors/keyboardio/model01.cpp
index 19da2270..4c831413 100644
--- a/src/kaleidoscope/simulator/framework/vendors/keyboardio/model01.cpp
+++ b/src/kaleidoscope/simulator/interface/vendors/keyboardio/model01.cpp
@@ -18,11 +18,11 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
-#include "kaleidoscope/simulator/framework/vendors/keyboardio/model01.h"
+#include "kaleidoscope/simulator/interface/vendors/keyboardio/model01.h"
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace keyboardio {
namespace model01 {
const char *ascii_keyboard =
@@ -46,7 +46,7 @@ const char *ascii_keyboard =
" ┗━━━━━━┛ ┗━━━━━━┛ \n";
} // namespace model01
} // namespace keyboardio
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope
diff --git a/src/kaleidoscope/simulator/framework/vendors/keyboardio/model01.h b/src/kaleidoscope/simulator/interface/vendors/keyboardio/model01.h
similarity index 96%
rename from src/kaleidoscope/simulator/framework/vendors/keyboardio/model01.h
rename to src/kaleidoscope/simulator/interface/vendors/keyboardio/model01.h
index 1d05ae56..258fbc6f 100644
--- a/src/kaleidoscope/simulator/framework/vendors/keyboardio/model01.h
+++ b/src/kaleidoscope/simulator/interface/vendors/keyboardio/model01.h
@@ -22,7 +22,7 @@
namespace kaleidoscope {
namespace simulator {
-namespace framework {
+namespace interface {
namespace keyboardio {
namespace model01 {
@@ -34,7 +34,7 @@ extern const char *ascii_keyboard;
} // namespace model01
} // namespace keyboardio
-} // namespace framework
+} // namespace interface
} // namespace simulator
} // namespace kaleidoscope