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

Binary layout. More...

#include <binary_layout.h>

Inheritance diagram for CppLogging::BinaryLayout:
CppLogging::Layout CppLogging::Element

Public Member Functions

 BinaryLayout ()=default
 
 BinaryLayout (const BinaryLayout &)=delete
 
 BinaryLayout (BinaryLayout &&)=delete
 
virtual ~BinaryLayout ()=default
 
BinaryLayoutoperator= (const BinaryLayout &)=delete
 
BinaryLayoutoperator= (BinaryLayout &&)=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

Binary layout.

Binary layout performs simple memory copy operation to convert the given logging record into the plane raw buffer.

Thread-safe.

Definition at line 23 of file binary_layout.h.

Constructor & Destructor Documentation

◆ BinaryLayout() [1/3]

CppLogging::BinaryLayout::BinaryLayout ( )
default

◆ BinaryLayout() [2/3]

CppLogging::BinaryLayout::BinaryLayout ( const BinaryLayout )
delete

◆ BinaryLayout() [3/3]

CppLogging::BinaryLayout::BinaryLayout ( BinaryLayout &&  )
delete

◆ ~BinaryLayout()

virtual CppLogging::BinaryLayout::~BinaryLayout ( )
virtualdefault

Member Function Documentation

◆ LayoutRecord()

void CppLogging::BinaryLayout::LayoutRecord ( Record record)
overridevirtual

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 16 of file binary_layout.cpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

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