Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
iv::logs::StartingLog Class Reference

#include <StartingLog.hpp>

Inheritance diagram for iv::logs::StartingLog:
[legend]
Collaboration diagram for iv::logs::StartingLog:
[legend]

Public Member Functions

 StartingLog ()=default
 
 ~StartingLog () override=default
 
void message (const std::string &txtMessage) override
 
void warning (const std::string &txtWarning) override
 
void error (const std::string &txtError) override
 
void critical (std::string_view txtCritical)
 Add a critical message that will prevent program from starting.
 
bool hasWarnings () const
 
bool hasError () const override
 
bool hasCriticals () const
 
const std::vector< std::string > & getMessages () const
 
const std::vector< std::string > & getWarnings () const
 
const std::vector< std::string > & getErrors () const
 
const std::vector< std::string > & getCriticalMessages () const
 
void line (uint64_t numCar)
 Show in the console a line with the given number of hyphens

 
void showMessagesError (const std::vector< std::string > &messagesError)
 
void printMessage (const char *format,...) __attribute__((format(printf
 
void void printWarning (const char *format,...) __attribute__((format(printf
 
void void void printError (const char *format,...) __attribute__((format(printf
 

Static Public Member Functions

static std::weak_ptr< StartingLogcreateNewInstance ()
 
static std::weak_ptr< StartingLogget ()
 
static void deleteInstance ()
 

Private Attributes

std::vector< std::string > m_messages {}
 
std::vector< std::string > m_warnings {}
 
std::vector< std::string > m_errors {}
 
std::vector< std::string > m_criticals {}
 

Static Private Attributes

static std::shared_ptr< StartingLogm_instance {nullptr}
 

Constructor & Destructor Documentation

◆ StartingLog()

iv::logs::StartingLog::StartingLog ( )
default

◆ ~StartingLog()

iv::logs::StartingLog::~StartingLog ( )
overridedefault

Member Function Documentation

◆ createNewInstance()

std::weak_ptr< StartingLog > iv::logs::StartingLog::createNewInstance ( )
static

◆ critical()

void iv::logs::StartingLog::critical ( std::string_view txtCritical)

Add a critical message that will prevent program from starting.

Parameters
txtCritical

◆ deleteInstance()

void iv::logs::StartingLog::deleteInstance ( )
static

◆ error()

void iv::logs::StartingLog::error ( const std::string & txtError)
overridevirtual

Implements AbstractLog.

◆ get()

std::weak_ptr< StartingLog > iv::logs::StartingLog::get ( )
static

◆ getCriticalMessages()

const std::vector< std::string > & iv::logs::StartingLog::getCriticalMessages ( ) const
nodiscard

◆ getErrors()

const std::vector< std::string > & iv::logs::StartingLog::getErrors ( ) const
nodiscard

◆ getMessages()

const std::vector< std::string > & iv::logs::StartingLog::getMessages ( ) const
nodiscard

◆ getWarnings()

const std::vector< std::string > & iv::logs::StartingLog::getWarnings ( ) const
nodiscard

◆ hasCriticals()

bool iv::logs::StartingLog::hasCriticals ( ) const
nodiscard

◆ hasError()

bool iv::logs::StartingLog::hasError ( ) const
nodiscardoverridevirtual

Implements AbstractLog.

◆ hasWarnings()

bool iv::logs::StartingLog::hasWarnings ( ) const
nodiscard

◆ line()

void AbstractLog::line ( uint64_t numCar)
inherited

Show in the console a line with the given number of hyphens

Parameters
numCarThe number of hyphens that is wanted to print

◆ message()

void iv::logs::StartingLog::message ( const std::string & txtMessage)
overridevirtual

Implements AbstractLog.

◆ printError()

void AbstractLog::printError ( const char * format,
... )
inherited

◆ printMessage()

void AbstractLog::printMessage ( const char * format,
... )
inherited

◆ printWarning()

void AbstractLog::printWarning ( const char * format,
... )
inherited

◆ showMessagesError()

void AbstractLog::showMessagesError ( const std::vector< std::string > & messagesError)
inherited

◆ warning()

void iv::logs::StartingLog::warning ( const std::string & txtWarning)
overridevirtual

Implements AbstractLog.

Member Data Documentation

◆ m_criticals

std::vector<std::string> iv::logs::StartingLog::m_criticals {}
private

◆ m_errors

std::vector<std::string> iv::logs::StartingLog::m_errors {}
private

◆ m_instance

std::shared_ptr< StartingLog > iv::logs::StartingLog::m_instance {nullptr}
staticprivate

◆ m_messages

std::vector<std::string> iv::logs::StartingLog::m_messages {}
private

◆ m_warnings

std::vector<std::string> iv::logs::StartingLog::m_warnings {}
private

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