fw4spl
|
Class ProgressToLogger is an ProgressAdviser::ProgressHandler, it receive notification from its ProgressAdviser and send the progress to the logging system ( SpyLog ) More...
#include <ProgressToLogger.hpp>
Public Member Functions | |
FWTOOLS_API | ProgressToLogger (std::string prefix, std::string postfix=" %") |
constructor : define an output to log system as : [prefix] message percent [postfix] More... | |
virtual FWTOOLS_API | ~ProgressToLogger () |
default destructor, do nothing | |
FWTOOLS_API void | operator() (float percent, std::string msg) |
the handler effective code : send formated progress information to the log system SpyLog. The formated ouput look like [prefix] msg percent [postfix] | |
Protected Attributes | |
std::string | m_prefix |
std::string | m_postfix |
Class ProgressToLogger is an ProgressAdviser::ProgressHandler, it receive notification from its ProgressAdviser and send the progress to the logging system ( SpyLog )
Definition at line 24 of file ProgressToLogger.hpp.
fwTools::ProgressToLogger::ProgressToLogger | ( | std::string | prefix, |
std::string | postfix = " %" |
||
) |
constructor : define an output to log system as : [prefix] message percent [postfix]
[in] | prefix | allow to add a prefix in the formated log message |
[in] | postfix | allow to add a postfix in the formated log message |
Definition at line 14 of file ProgressToLogger.cpp.