Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::record::Event Class Reference

Log event class. More...

#include <Event.h>

Public Types

typedef std::shared_ptr< EventPtr
 

Public Member Functions

 Event (DateTime date_time, Level lv, std::string thread_name, tid_t id, std::string file, int32_t line, std::string msg) noexcept
 
const DateTimegetTime () const noexcept
 
Level getLevel () const noexcept
 
tid_t getThreadId () const noexcept
 
int32_t getLine () const noexcept
 
auto & getFileName () const noexcept
 
auto & getMessage () const noexcept
 
auto & getThreadName () const noexcept
 

Private Attributes

DateTime dateTime
 
Level level
 
std::string threadName
 
tid_t threadId
 
std::string file
 
int32_t line
 
std::string message
 

Detailed Description

Log event class.

Member Typedef Documentation

◆ Ptr

typedef std::shared_ptr<Event> sese::record::Event::Ptr

Constructor & Destructor Documentation

◆ Event()

sese::record::Event::Event ( DateTime date_time,
Level lv,
std::string thread_name,
tid_t id,
std::string file,
int32_t line,
std::string msg )
inlinenoexcept

Member Function Documentation

◆ getFileName()

auto & sese::record::Event::getFileName ( ) const
inlinenodiscardnoexcept

References file.

◆ getLevel()

Level sese::record::Event::getLevel ( ) const
inlinenodiscardnoexcept

References level.

◆ getLine()

int32_t sese::record::Event::getLine ( ) const
inlinenodiscardnoexcept

References line.

◆ getMessage()

auto & sese::record::Event::getMessage ( ) const
inlinenodiscardnoexcept

References message.

◆ getThreadId()

tid_t sese::record::Event::getThreadId ( ) const
inlinenodiscardnoexcept

References threadId.

◆ getThreadName()

auto & sese::record::Event::getThreadName ( ) const
inlinenodiscardnoexcept

References threadName.

◆ getTime()

const DateTime & sese::record::Event::getTime ( ) const
inlinenodiscardnoexcept

References dateTime.

Member Data Documentation

◆ dateTime

DateTime sese::record::Event::dateTime
private

Referenced by Event(), and getTime().

◆ file

std::string sese::record::Event::file
private

Referenced by Event(), and getFileName().

◆ level

Level sese::record::Event::level
private

Referenced by Event(), and getLevel().

◆ line

int32_t sese::record::Event::line
private

Referenced by Event(), and getLine().

◆ message

std::string sese::record::Event::message
private

Referenced by Event(), and getMessage().

◆ threadId

tid_t sese::record::Event::threadId
private

Referenced by Event(), and getThreadId().

◆ threadName

std::string sese::record::Event::threadName
private

Referenced by Event(), and getThreadName().


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