CppLogging 1.0.5.0
C++ Logging Library
Loading...
Searching...
No Matches
empty_layout.h
Go to the documentation of this file.
1
9#ifndef CPPLOGGING_LAYOUTS_EMPTY_LAYOUT_H
10#define CPPLOGGING_LAYOUTS_EMPTY_LAYOUT_H
11
12#include "logging/layout.h"
13
14namespace CppLogging {
15
17
23class EmptyLayout : public Layout
24{
25public:
26 EmptyLayout() = default;
27 EmptyLayout(const EmptyLayout&) = delete;
29 virtual ~EmptyLayout() = default;
30
33
34 // Implementation of Layout
35 void LayoutRecord(Record& record) override { record.raw.clear(); }
36};
37
38} // namespace CppLogging
39
40#endif // CPPLOGGING_LAYOUTS_EMPTY_LAYOUT_H
EmptyLayout & operator=(EmptyLayout &&)=delete
virtual ~EmptyLayout()=default
void LayoutRecord(Record &record) override
Layout the given logging record into a raw buffer.
EmptyLayout(EmptyLayout &&)=delete
EmptyLayout & operator=(const EmptyLayout &)=delete
EmptyLayout(const EmptyLayout &)=delete
Logging layout interface.
Definition layout.h:28
Logging record.
Definition record.h:37
std::vector< uint8_t > raw
Record content after layout.
Definition record.h:53
Logging layout interface definition.
C++ Logging project definitions.
Definition appender.h:15