CppLogging  1.0.4.0
C++ Logging Library
Public Member Functions | List of all members
CppLogging::NullLayout Class Reference

Null layout. More...

#include <null_layout.h>

Inheritance diagram for CppLogging::NullLayout:
CppLogging::Layout CppLogging::Element

Public Member Functions

 NullLayout ()=default
 
 NullLayout (const NullLayout &)=delete
 
 NullLayout (NullLayout &&)=delete
 
virtual ~NullLayout ()=default
 
NullLayoutoperator= (const NullLayout &)=delete
 
NullLayoutoperator= (NullLayout &&)=delete
 
void LayoutRecord (Record &record) override
 Layout the given logging record into a raw buffer. More...
 
- Public Member Functions inherited from CppLogging::Element
virtual bool IsStarted () const noexcept
 Is the logging element started? More...
 
virtual bool Start ()
 Start the logging element. More...
 
virtual bool Stop ()
 Stop the logging element. More...
 

Detailed Description

Null layout.

Null layout does nothing with a given logging record.

Thread-safe.

Definition at line 22 of file null_layout.h.

Constructor & Destructor Documentation

◆ NullLayout() [1/3]

CppLogging::NullLayout::NullLayout ( )
default

◆ NullLayout() [2/3]

CppLogging::NullLayout::NullLayout ( const NullLayout )
delete

◆ NullLayout() [3/3]

CppLogging::NullLayout::NullLayout ( NullLayout &&  )
delete

◆ ~NullLayout()

virtual CppLogging::NullLayout::~NullLayout ( )
virtualdefault

Member Function Documentation

◆ LayoutRecord()

void CppLogging::NullLayout::LayoutRecord ( Record record)
inlineoverridevirtual

Layout the given logging record into a raw buffer.

This method will update the raw filed of the given logging record.

Parameters
record- Logging record

Implements CppLogging::Layout.

Definition at line 34 of file null_layout.h.

◆ operator=() [1/2]

NullLayout& CppLogging::NullLayout::operator= ( const NullLayout )
delete

◆ operator=() [2/2]

NullLayout& CppLogging::NullLayout::operator= ( NullLayout &&  )
delete

The documentation for this class was generated from the following file: