CppLogging  1.0.4.0
C++ Logging Library
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 
14 namespace CppLogging {
15 
17 
23 class EmptyLayout : public Layout
24 {
25 public:
26  EmptyLayout() = default;
27  EmptyLayout(const EmptyLayout&) = delete;
28  EmptyLayout(EmptyLayout&&) = delete;
29  virtual ~EmptyLayout() = default;
30 
31  EmptyLayout& operator=(const EmptyLayout&) = delete;
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.
Definition: empty_layout.h:35
EmptyLayout & operator=(const EmptyLayout &)=delete
EmptyLayout(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