21 #ifndef INCLUDE_OLA_MESSAGING_MESSAGEPRINTER_H_ 22 #define INCLUDE_OLA_MESSAGING_MESSAGEPRINTER_H_ 24 #include <ola/messaging/MessageVisitor.h> 56 std::ostringstream& Stream() {
return m_str; }
57 virtual void PostStringHook() {}
58 virtual std::string TransformLabel(
const std::string &label) {
63 std::ostringstream 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 AppendMultiplier(int8_t multiplier);
110 #endif // INCLUDE_OLA_MESSAGING_MESSAGEPRINTER_H_ Definition: MessageVisitor.h:43
Definition: MessagePrinter.h:35
Definition: Message.h:131
Definition: MessagePrinter.h:70
std::string AsString(const class Message *message)
Definition: MessagePrinter.cpp:39
Definition: Message.h:157
Definition: Message.h:183
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
Definition: Message.h:208
Definition: Message.h:242