Lugdunum  0.1.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
lug::System::Logger::Formatter Class Reference

#include <Formatter.hpp>

Collaboration diagram for lug::System::Logger::Formatter:
[legend]

Public Member Functions

 Formatter (const std::string &pattern)
 
 Formatter (const Formatter &)=delete
 
 Formatter (Formatter &&)=delete
 
Formatteroperator= (const Formatter &)=delete
 
Formatteroperator= (Formatter &&)=delete
 
virtual ~Formatter ()
 
virtual void format (priv::Message &msg)
 
virtual void format (priv::Message &msg, const std::tm *now)
 

Private Member Functions

void handleFlag (char c)
 
void compilePattern (const std::string &pattern)
 
std::string handleFlagy (const std::tm *now)
 
std::string handleFlagY (const std::tm *now)
 
std::string handleFlagm (const std::tm *now)
 
std::string handleFlagd (const std::tm *now)
 
std::string handleFlagH (const std::tm *now)
 
std::string handleFlagM (const std::tm *now)
 
std::string handleFlagS (const std::tm *now)
 

Private Attributes

std::vector< priv::Token > _formatChain
 

Detailed Description

Definition at line 70 of file Formatter.hpp.

Constructor & Destructor Documentation

◆ Formatter() [1/3]

lug::System::Logger::Formatter::Formatter ( const std::string &  pattern)

Definition at line 156 of file Formatter.cpp.

◆ Formatter() [2/3]

lug::System::Logger::Formatter::Formatter ( const Formatter )
delete

◆ Formatter() [3/3]

lug::System::Logger::Formatter::Formatter ( Formatter &&  )
delete

◆ ~Formatter()

lug::System::Logger::Formatter::~Formatter ( )
virtualdefault

Member Function Documentation

◆ operator=() [1/2]

Formatter& lug::System::Logger::Formatter::operator= ( const Formatter )
delete

◆ operator=() [2/2]

Formatter& lug::System::Logger::Formatter::operator= ( Formatter &&  )
delete

◆ format() [1/2]

void lug::System::Logger::Formatter::format ( priv::Message &  msg)
virtual

Definition at line 162 of file Formatter.cpp.

◆ format() [2/2]

void lug::System::Logger::Formatter::format ( priv::Message &  msg,
const std::tm *  now 
)
virtual

Definition at line 180 of file Formatter.cpp.

◆ handleFlag()

void lug::System::Logger::Formatter::handleFlag ( char  c)
inlineprivate

Definition at line 86 of file Formatter.cpp.

◆ compilePattern()

void lug::System::Logger::Formatter::compilePattern ( const std::string &  pattern)
inlineprivate

Definition at line 122 of file Formatter.cpp.

◆ handleFlagy()

std::string lug::System::Logger::Formatter::handleFlagy ( const std::tm *  now)
private

Definition at line 44 of file Formatter.cpp.

◆ handleFlagY()

std::string lug::System::Logger::Formatter::handleFlagY ( const std::tm *  now)
private

Definition at line 50 of file Formatter.cpp.

◆ handleFlagm()

std::string lug::System::Logger::Formatter::handleFlagm ( const std::tm *  now)
private

Definition at line 56 of file Formatter.cpp.

◆ handleFlagd()

std::string lug::System::Logger::Formatter::handleFlagd ( const std::tm *  now)
private

Definition at line 62 of file Formatter.cpp.

◆ handleFlagH()

std::string lug::System::Logger::Formatter::handleFlagH ( const std::tm *  now)
private

Definition at line 68 of file Formatter.cpp.

◆ handleFlagM()

std::string lug::System::Logger::Formatter::handleFlagM ( const std::tm *  now)
private

Definition at line 74 of file Formatter.cpp.

◆ handleFlagS()

std::string lug::System::Logger::Formatter::handleFlagS ( const std::tm *  now)
private

Definition at line 80 of file Formatter.cpp.

Member Data Documentation

◆ _formatChain

std::vector<priv::Token> lug::System::Logger::Formatter::_formatChain
private

Definition at line 97 of file Formatter.hpp.


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