23#ifndef VCL_MISC_LOGGER_ABSTRACT_LOGGER_H
24#define VCL_MISC_LOGGER_ABSTRACT_LOGGER_H
26#include <vclib/concepts/logger.h>
53 virtual void enableIndentation() = 0;
55 virtual void disableIndentation() = 0;
57 virtual void enablePrintPercentage() = 0;
59 virtual void disablePrintPercentage() = 0;
75 virtual void enablePrintMessageDuringProgress() = 0;
77 virtual void disablePrintMessageDuringProgress() = 0;
79 virtual void enablePrintTimer() = 0;
81 virtual void disablePrintTimer() = 0;
83 virtual void reset() = 0;
85 virtual void setMaxLineWidth(uint width) = 0;
87 virtual void startTimer() = 0;
89 virtual void stopTimer() = 0;
98 virtual double time()
const = 0;
100 virtual void startNewTask(
103 const std::string&
action) = 0;
105 virtual void endTask(
const std::string&
action) = 0;
107 virtual double percentage()
const = 0;
109 virtual void setPercentage(uint
newPerc) = 0;
117 virtual void log(
const std::string&
msg)
const = 0;
126 virtual void log(
const std::string&
msg, LogLevel
lvl)
const = 0;
180 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:39
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 line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:43