equal
deleted
inserted
replaced
135 }; |
135 }; |
136 |
136 |
137 // A simple wrapper class for fixed size text messages. |
137 // A simple wrapper class for fixed size text messages. |
138 template <size_t bufsz> |
138 template <size_t bufsz> |
139 class FormatStringLogMessage : public FormatBuffer<bufsz> { |
139 class FormatStringLogMessage : public FormatBuffer<bufsz> { |
140 public: |
|
141 // Wrap this buffer in a stringStream. |
|
142 stringStream stream() { |
|
143 return stringStream(this->_buf, this->size()); |
|
144 } |
|
145 }; |
140 }; |
146 typedef FormatStringLogMessage<256> StringLogMessage; |
141 typedef FormatStringLogMessage<256> StringLogMessage; |
147 typedef FormatStringLogMessage<512> ExtendedStringLogMessage; |
142 typedef FormatStringLogMessage<512> ExtendedStringLogMessage; |
148 |
143 |
149 // A simple ring buffer of fixed size text messages. |
144 // A simple ring buffer of fixed size text messages. |