Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CLoggerZenity Class Referencefinal

#include <CLoggerZenity.hpp>

Inheritance diagram for CLoggerZenity:
[legend]
Collaboration diagram for CLoggerZenity:
[legend]

Public Member Functions

 CLoggerZenity (const std::string &title)
 
 ~CLoggerZenity () override
 
void message (const std::string &txtMessage) override
 
void warning (const std::string &txtWarning) override
 
void error (const std::string &txtError) override
 
bool hasError () const override
 
void showInform ()
 
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 void showInfoDialog (std::string_view msg)
 Show a zenity dialog with the message.
 
static void showErrorDialog (std::string_view msg)
 Show a zenity dialog with the message.
 

Private Attributes

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

Constructor & Destructor Documentation

◆ CLoggerZenity()

CLoggerZenity::CLoggerZenity ( const std::string & title)
explicit

◆ ~CLoggerZenity()

CLoggerZenity::~CLoggerZenity ( )
override

Member Function Documentation

◆ error()

void CLoggerZenity::error ( const std::string & txtError)
overridevirtual

Implements AbstractLog.

◆ hasError()

bool CLoggerZenity::hasError ( ) const
nodiscardoverridevirtual

Implements AbstractLog.

◆ 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 CLoggerZenity::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

◆ showErrorDialog()

void CLoggerZenity::showErrorDialog ( std::string_view msg)
static

Show a zenity dialog with the message.

Parameters
msgMessage to show

◆ showInfoDialog()

void CLoggerZenity::showInfoDialog ( std::string_view msg)
static

Show a zenity dialog with the message.

Parameters
msgMessage to show

◆ showInform()

void CLoggerZenity::showInform ( )

◆ showMessagesError()

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

◆ warning()

void CLoggerZenity::warning ( const std::string & txtWarning)
overridevirtual

Implements AbstractLog.

Member Data Documentation

◆ m_errors

std::vector<std::string> CLoggerZenity::m_errors {}
private

◆ m_messages

std::vector<std::string> CLoggerZenity::m_messages {}
private

◆ m_title

std::string CLoggerZenity::m_title
private

◆ m_warnings

std::vector<std::string> CLoggerZenity::m_warnings {}
private

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