summaryrefslogtreecommitdiff
path: root/src/formatter
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-11-29 16:52:27 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-11-29 16:52:27 +0300
commit6003eaa6756b7f97ff5c41fb3bc62cc63fcc4648 (patch)
treed1cc5a9b0564bad1d07d4614f93ae95f085c5a53 /src/formatter
parentd74a2a3e78a631aa46ec6c1d6049a04d4bd5a4ba (diff)
p18/get-p-status: don't output max_temp if inverter doesn't return it
Diffstat (limited to 'src/formatter')
-rw-r--r--src/formatter/formatter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/formatter/formatter.h b/src/formatter/formatter.h
index 2ffa9b2..d9d5629 100644
--- a/src/formatter/formatter.h
+++ b/src/formatter/formatter.h
@@ -127,6 +127,10 @@ public:
explicit Table(Format format, std::vector<TableItem<T>> v)
: Formattable(format), v_(v) {}
+ void push(TableItem<T> item) {
+ v_.push_back(item);
+ }
+
std::ostream& writeSimpleTable(std::ostream& os) const override {
for (const auto& item: v_) {
os << item.key << " ";