diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-11-29 16:52:27 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-11-29 16:52:27 +0300 |
commit | 6003eaa6756b7f97ff5c41fb3bc62cc63fcc4648 (patch) | |
tree | d1cc5a9b0564bad1d07d4614f93ae95f085c5a53 /src/formatter | |
parent | d74a2a3e78a631aa46ec6c1d6049a04d4bd5a4ba (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.h | 4 |
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 << " "; |