CppLogging  1.0.4.0
C++ Logging Library
null_layout.h
Go to the documentation of this file.
1 
9 #ifndef CPPLOGGING_LAYOUTS_NULL_LAYOUT_H
10 #define CPPLOGGING_LAYOUTS_NULL_LAYOUT_H
11 
12 #include "logging/layout.h"
13 
14 namespace CppLogging {
15 
17 
22 class NullLayout : public Layout
23 {
24 public:
25  NullLayout() = default;
26  NullLayout(const NullLayout&) = delete;
27  NullLayout(NullLayout&&) = delete;
28  virtual ~NullLayout() = default;
29 
30  NullLayout& operator=(const NullLayout&) = delete;
32 
33  // Implementation of Layout
34  void LayoutRecord(Record& record) override {}
35 };
36 
37 } // namespace CppLogging
38 
39 #endif // CPPLOGGING_LAYOUTS_NULL_LAYOUT_H
Logging layout interface.
Definition: layout.h:28
void LayoutRecord(Record &record) override
Layout the given logging record into a raw buffer.
Definition: null_layout.h:34
virtual ~NullLayout()=default
NullLayout & operator=(const NullLayout &)=delete
NullLayout(NullLayout &&)=delete
NullLayout(const NullLayout &)=delete
NullLayout & operator=(NullLayout &&)=delete
Logging record.
Definition: record.h:37
Logging layout interface definition.
C++ Logging project definitions.
Definition: appender.h:15