21 #ifndef INCLUDE_OLA_MESSAGING_MESSAGEPRINTER_H_
22 #define INCLUDE_OLA_MESSAGING_MESSAGEPRINTER_H_
24 #include <ola/messaging/MessageVisitor.h>
56 std::stringstream& Stream() {
return m_str; }
57 virtual void PostStringHook() {}
58 virtual std::string TransformLabel(
const std::string &label) {
63 std::stringstream m_str;
73 unsigned int initial_indent = 0)
74 : m_indent(initial_indent),
75 m_indent_size(indent_size) {
93 static const unsigned int DEFAULT_INDENT = 2;
96 unsigned int m_indent, m_indent_size;
98 void AppendUInt(
const std::string &name,
100 const std::string &label,
102 void AppendInt(
const std::string &name,
104 const std::string &label,
106 void AppendMultipler(int8_t multipler);
110 #endif // INCLUDE_OLA_MESSAGING_MESSAGEPRINTER_H_