Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
AbstractLog.hpp
Go to the documentation of this file.
1#ifndef LIBS_CORE_ABSTRACTLOG_HPP_
2#define LIBS_CORE_ABSTRACTLOG_HPP_
3
4#include <cstdint>
5#include <string>
6#include <vector>
7
9{
10public:
12 AbstractLog(const AbstractLog &other) = delete;
13 AbstractLog(AbstractLog &&other) = delete;
14 virtual ~AbstractLog();
15
16 virtual void message(const std::string &txtMessage) = 0;
17 virtual void warning(const std::string &txtWarning) = 0;
18 virtual void error(const std::string &txtError) = 0;
19
20 void line(uint64_t numCar);
21 void showMessagesError(const std::vector<std::string> &messagesError);
22 void printMessage(const char *format, ...) __attribute__((format(printf, 2, 3)));
23 void printWarning(const char *format, ...) __attribute__((format(printf, 2, 3)));
24 void printError(const char *format, ...) __attribute__((format(printf, 2, 3)));
25
26 [[nodiscard]] virtual bool hasError() const = 0;
27};
28
29#endif /* LIBS_CORE_ABSTRACTLOG_HPP_ */
Definition AbstractLog.hpp:9
void void void printError(const char *format,...) __attribute__((format(printf
Definition AbstractLog.cpp:77
void void void virtual bool hasError() const =0
AbstractLog(const AbstractLog &other)=delete
void line(uint64_t numCar)
Show in the console a line with the given number of hyphens
Definition AbstractLog.cpp:29
void printMessage(const char *format,...) __attribute__((format(printf
Definition AbstractLog.cpp:45
virtual void message(const std::string &txtMessage)=0
virtual void error(const std::string &txtError)=0
void showMessagesError(const std::vector< std::string > &messagesError)
Definition AbstractLog.cpp:36
void void printWarning(const char *format,...) __attribute__((format(printf
Definition AbstractLog.cpp:61
AbstractLog(AbstractLog &&other)=delete
AbstractLog()
Construct a new Abstract Log:: Abstract Log object.
virtual ~AbstractLog()
Destroy the Abstract Log:: Abstract Log object.
virtual void warning(const std::string &txtWarning)=0