diff --git a/src/device/handlers/InputHandler.h b/src/device/handlers/InputHandler.h index 73396f3..1b11bf2 100644 --- a/src/device/handlers/InputHandler.h +++ b/src/device/handlers/InputHandler.h @@ -16,6 +16,9 @@ class InputHandler { std::optional hotlink; + /* + Internal value setters + */ void setPath(std::string name); void updateSPIndex(int index); void updateTemperatureIndex(int index); @@ -23,12 +26,16 @@ class InputHandler { void setHotlink(); + /* + Pull value from the ODB + */ void pullSPValue(); void pullTemperatureValue(); void pullPowerValue(); public: InputHandler(EventBus &eventBusReference); + enum class EventType { SP_VALUE, TEMPERATURE_VALUE, diff --git a/src/device/handlers/OutputHandler.h b/src/device/handlers/OutputHandler.h index 27b7df2..8f129d7 100644 --- a/src/device/handlers/OutputHandler.h +++ b/src/device/handlers/OutputHandler.h @@ -13,11 +13,17 @@ class OutputHandler { std::string equipmentPath; float pressure; int outputPressureSPIndex; + + /* + Internal value setters + */ void enableSetPressure(bool enable); void setPressure(float value); void setOutputPressureSPIndex(int index); void setEquipmentPath(std::string equipmentName); - + /* + Update value of the ODB + */ void update(); public: