9 #ifndef CPPLOGGING_APPENDERS_MEMORY_APPENDER_H
10 #define CPPLOGGING_APPENDERS_MEMORY_APPENDER_H
39 std::vector<uint8_t>&
buffer() noexcept {
return _buffer; }
41 const std::vector<uint8_t>&
buffer() const noexcept {
return _buffer; }
47 std::vector<uint8_t> _buffer;
Logging appender interface definition.
Logging appender interface.
MemoryAppender & operator=(MemoryAppender &&)=delete
std::vector< uint8_t > & buffer() noexcept
Get memory buffer.
MemoryAppender(const MemoryAppender &)=delete
MemoryAppender & operator=(const MemoryAppender &)=delete
virtual ~MemoryAppender()=default
const std::vector< uint8_t > & buffer() const noexcept
Get constant memory buffer.
MemoryAppender(size_t capacity=0)
Initialize the appender with a given capacity.
void AppendRecord(Record &record) override
Append the given logging record.
MemoryAppender(MemoryAppender &&)=delete
C++ Logging project definitions.