BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Printable.h
1 #pragma once
2 
3 #include <iosfwd>
4 #include <string>
5 
6 namespace BeeeOn {
7 
8 class Printable {
9 public:
10  virtual void print(const std::string &text, bool newline = true) = 0;
11 };
12 
16 class IOSPrintable : public Printable {
17 public:
18  IOSPrintable(std::ostream &out);
19 
20  void print(const std::string &text, bool newline = true) override;
21 
22 private:
23  std::ostream &m_out;
24 };
25 
26 }
Definition: Printable.h:8
Definition: Printable.h:16