21 #ifndef INCLUDE_OLA_MESSAGING_MESSAGEPRINTER_H_
22 #define INCLUDE_OLA_MESSAGING_MESSAGEPRINTER_H_
24 #include <ola/messaging/MessageVisitor.h>
55 std::stringstream& Stream() {
return m_str; }
56 virtual void PostStringHook() {}
57 virtual string TransformLabel(
const string &label) {
return label; }
60 std::stringstream m_str;
70 unsigned int initial_indent = 0)
71 : m_indent(initial_indent),
72 m_indent_size(indent_size) {
89 static const unsigned int DEFAULT_INDENT = 2;
92 unsigned int m_indent, m_indent_size;
94 void AppendUInt(
const string &name,
98 void AppendInt(
const string &name,
102 void AppendMultipler(int8_t multipler);
106 #endif // INCLUDE_OLA_MESSAGING_MESSAGEPRINTER_H_