23#ifndef VCL_BASE_LOGGER_NULL_LOGGER_H
24#define VCL_BASE_LOGGER_NULL_LOGGER_H
26#include "abstract_logger.h"
46 void enableIndentation()
override final {}
48 void disableIndentation()
override final {}
50 void enablePrintPercentage()
override final {}
52 void disablePrintPercentage()
override final {}
58 void disablePrintMessageDuringProgress() override final {}
60 void enablePrintTimer() override final {}
62 void disablePrintTimer() override final {}
64 void reset() override final {}
66 void setMaxLineWidth(uint)
override final {}
68 void startTimer() override final {}
70 void stopTimer() override final {}
74 void startNewTask(
double,
double,
const std::string&)
override final {}
76 void endTask(
const std::string&)
override final {}
78 double percentage() const override final {
return 0; }
80 void setPercentage(uint)
override final {}
82 void log(
const std::string&)
const override final {}
84 void log(
const std::string&, LogLevel)
const override final {}
86 void log(uint,
const std::string&)
override final {}
88 void log(uint,
const std::string&, LogLevel)
override final {}
90 void startProgress(
const std::string&, uint, uint = 0, uint = 0, uint = 0)
The AbstractLogger class is used as common ancestor class for all the logger types in the library.
Definition abstract_logger.h:40
A class representing a box in N-dimensional space.
Definition box.h:46
The NullLogger class is used as default type in all the library functions that take as input a logger...
Definition null_logger.h:42
void startProgress(const std::string &, uint, uint=0, uint=0, uint=0) override final
Allows to easily manage progresses with the logger, along with the progress and endProgress member fu...
Definition null_logger.h:90
void endProgress() override final
Allows to easily manage progresses with the logger, along with the startProgress and progress member ...
Definition null_logger.h:95
void log(uint, const std::string &, LogLevel) override final
Prints a message to the logger, with the given level and with the given percentage.
Definition null_logger.h:88
void log(const std::string &, LogLevel) const override final
Prints a message to the logger, with the given level and without modifying the current percentage.
Definition null_logger.h:84
void progress(uint) override final
Allows to easily manage progresses with the logger, along with the startProgress and endProgress memb...
Definition null_logger.h:97
void log(const std::string &) const override final
Prints a message to the logger, with level LogLevel::PROGRESS and without modifying the current perce...
Definition null_logger.h:82
double time() const override final
Returns the time passed since the last call to startTimer member function, or the time passed between...
Definition null_logger.h:72
void setPrintLevel(LogLevel) override final
Sets the maximum print level of the logger.
Definition null_logger.h:54
void log(uint, const std::string &) override final
Prints a message to the logger, with the level LogLevel::PROGRESS and with the given percentage.
Definition null_logger.h:86
NullLogger nullLogger
The nullLogger object is an object of type NullLogger that is used as default argument in the functio...
Definition null_logger.h:123