#ifndef PORT_H #define PORT_H #include #include #include #include "portParametersGeneric.h" #include "modbus.h" class Port { private: std::shared_ptr modbus; uint16_t portStartAddress; void populateParameters(); std::pair, bool> getParameterByName(std::string name); void fixCurrent(); bool currentFixed; public: Port(std::shared_ptr modbus, uint16_t portStartAddress); std::vector> parameters; // void updateParameters(); void updateParameters(std::vector ¶metersToGet, bool allParameters); // void printParameters(); void printParameters(std::vector ¶metersToGet, bool allParameters); }; #endif