fw4spl
fwTools::ProgressToLogger Class Reference

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>

+ Inheritance diagram for fwTools::ProgressToLogger:
+ Collaboration diagram for fwTools::ProgressToLogger:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

fwTools::ProgressToLogger::ProgressToLogger ( std::string  prefix,
std::string  postfix = " %" 
)

constructor : define an output to log system as : [prefix] message percent [postfix]

Parameters
[in]prefixallow to add a prefix in the formated log message
[in]postfixallow to add a postfix in the formated log message

Definition at line 14 of file ProgressToLogger.cpp.


The documentation for this class was generated from the following files: