23#ifndef VCL_BASE_LOGGER_ABSTRACT_LOGGER_H
24#define VCL_BASE_LOGGER_ABSTRACT_LOGGER_H
26#include <vclib/base/base.h>
27#include <vclib/base/pointers.h>
54 virtual void enableIndentation() = 0;
56 virtual void disableIndentation() = 0;
58 virtual void enablePrintPercentage() = 0;
60 virtual void disablePrintPercentage() = 0;
76 virtual void enablePrintMessageDuringProgress() = 0;
78 virtual void disablePrintMessageDuringProgress() = 0;
80 virtual void enablePrintTimer() = 0;
82 virtual void disablePrintTimer() = 0;
84 virtual void reset() = 0;
86 virtual void setMaxLineWidth(uint width) = 0;
88 virtual void startTimer() = 0;
90 virtual void stopTimer() = 0;
99 virtual double time()
const = 0;
101 virtual void startNewTask(
104 const std::string&
action) = 0;
106 virtual void endTask(
const std::string&
action) = 0;
108 virtual double percentage()
const = 0;
110 virtual void setPercentage(uint
newPerc) = 0;
118 virtual void log(
const std::string&
msg)
const = 0;
127 virtual void log(
const std::string&
msg, LogLevel
lvl)
const = 0;
136 virtual void log(uint perc,
const std::string&
msg) = 0;
146 virtual void log(uint perc,
const std::string&
msg, LogLevel
lvl) = 0;
181 const std::string&
msg,
The AbstractLogger class is used as common ancestor class for all the logger types in the library.
Definition abstract_logger.h:40
virtual void log(const std::string &msg) const =0
Prints a message to the logger, with level LogLevel::PROGRESS and without modifying the current perce...
virtual double time() const =0
Returns the time passed since the last call to startTimer member function, or the time passed between...
virtual void endProgress()=0
Allows to easily manage progresses with the logger, along with the startProgress and progress member ...
virtual void startProgress(const std::string &msg, uint progressSize, uint percPrintProgress=10, uint startPerc=0, uint endPerc=100)=0
Allows to easily manage progresses with the logger, along with the progress and endProgress member fu...
virtual void setPrintLevel(LogLevel level)=0
Sets the maximum print level of the logger.
virtual void log(const std::string &msg, LogLevel lvl) const =0
Prints a message to the logger, with the given level and without modifying the current percentage.
virtual void progress(uint n)=0
Allows to easily manage progresses with the logger, along with the startProgress and endProgress memb...
virtual void log(uint perc, const std::string &msg, LogLevel lvl)=0
Prints a message to the logger, with the given level and with the given percentage.
virtual void log(uint perc, const std::string &msg)=0
Prints a message to the logger, with the level LogLevel::PROGRESS and with the given percentage.
A class representing a box in N-dimensional space.
Definition box.h:46
The LoggerConcept is satisfied if the type T is a valid Logger type.
Definition abstract_logger.h:259