Digitalisierte Elektroverteilung zur permanenten Verbraucherüberwachung
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ParameterCharP.h 673B

123456789101112131415
  1. #pragma once
  2. #include "ParameterInterface.h"
  3. class ParameterCharP : public ParameterInterface<char*>
  4. {
  5. private:
  6. char* param = nullptr;
  7. const uint8_t length;
  8. public:
  9. ParameterCharP(const ModbusRegister description, const uint16_t address, const uint8_t _length, const Access access) : ParameterInterface(description, address, access), length(_length) {};
  10. ParameterCharP(const ModbusRegister description, const unsigned short address, const uint8_t _length, const Access access, const Category cat) : ParameterInterface(description, address, access, cat), length(_length) {};
  11. virtual ~ParameterCharP(){}
  12. uint8_t getSize() const override { return length; }
  13. };