34 lines
657 B
C++
34 lines
657 B
C++
#ifndef OUTPUT_HANDLER_H
|
|
#define OUTPUT_HANDLER_H
|
|
|
|
#include "../EventBus.h"
|
|
#include "DemandHandler.h"
|
|
#include "PressureCalculator.h"
|
|
|
|
#include <string>
|
|
|
|
class OutputHandler {
|
|
private:
|
|
bool isSetPressureEnable;
|
|
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:
|
|
OutputHandler(EventBus &eventBusReference);
|
|
};
|
|
|
|
#endif
|