Impelements and integrates DisplayFactory. Further does some refactoring
This commit is contained in:
@@ -24,7 +24,10 @@ class EightDigitDisplay : public items::detail::Display, public items::EightDigi
|
||||
{
|
||||
public:
|
||||
EightDigitDisplay(uint8_t address, uint8_t id) :
|
||||
detail::Display(address, id) {}
|
||||
detail::Display(address, id)
|
||||
{
|
||||
CLOG(INFO, OUTPUT_LOGGER) << "Created EightDigitDisplay with address " << int{this->address} << " and id: " << int{id};
|
||||
}
|
||||
|
||||
~EightDigitDisplay() override = default;
|
||||
|
||||
@@ -38,7 +41,10 @@ public:
|
||||
detail::Display::write_content(content, 8);
|
||||
}
|
||||
|
||||
|
||||
std::string get_name() const override
|
||||
{
|
||||
return "EightDigitDisplay " + this->id;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user