23#ifndef VCL_MISC_LOGGER_NULL_LOGGER_H
24#define VCL_MISC_LOGGER_NULL_LOGGER_H
26#include "abstract_logger.h"
28#include <vclib/concepts/logger.h>
48 void enableIndentation()
override final {}
50 void disableIndentation()
override final {}
52 void enablePrintPercentage()
override final {}
54 void disablePrintPercentage()
override final {}
60 void disablePrintMessageDuringProgress() override final {}
62 void enablePrintTimer() override final {}
64 void disablePrintTimer() override final {}
66 void reset() override final {}
68 void setMaxLineWidth(uint)
override final {}
70 void startTimer() override final {}
72 void stopTimer() override final {}
76 void startNewTask(
double,
double,
const std::string&)
override final {}
78 void endTask(
const std::string&)
override final {}
80 double percentage() const override final {
return 0; }
82 void setPercentage(uint)
override final {}
84 void log(
const std::string&)
const override final {}
86 void log(
const std::string&, LogLevel)
const override final {}
88 void log(uint,
const std::string&)
override final {}
90 void log(uint,
const std::string&, LogLevel)
override final {}
92 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:39
The NullLogger class is used as default type in all the library functions that take as input a logger...
Definition null_logger.h:44
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:92
void endProgress() override final
Allows to easily manage progresses with the logger, along with the startProgress and progress member ...
Definition null_logger.h:97
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:90
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:86
void progress(uint) override final
Allows to easily manage progresses with the logger, along with the startProgress and endProgress memb...
Definition null_logger.h:99
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:84
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:74
void setPrintLevel(LogLevel) override final
Sets the maximum print level of the logger.
Definition null_logger.h:56
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:88
A class representing a line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:43
NullLogger nullLogger
The nullLogger object is an object of type NullLogger that is used as default argument in the functio...
Definition null_logger.h:125