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