SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SourceXtractor::ProgressReporter Class Reference

#include <ProgressReporter.h>

Inheritance diagram for SourceXtractor::ProgressReporter:
Collaboration diagram for SourceXtractor::ProgressReporter:

Public Member Functions

virtual ~ProgressReporter ()=default
 ProgressReporter ()=default
virtual void handleMessage (const std::list< ProgressInfo > &message)=0
virtual void handleMessage (const bool &message)=0
Public Member Functions inherited from SourceXtractor::Observer< std::list< ProgressInfo > >
virtual ~Observer ()=default
Public Member Functions inherited from SourceXtractor::Observer< bool >
virtual ~Observer ()=default

Detailed Description

This interface is implemented by the concrete progress reporters, so at run time the software can switch the way of informing the user about the progress. Details of what is reported is abstracted via key/value.

Definition at line 43 of file ProgressReporter.h.

Constructor & Destructor Documentation

◆ ~ProgressReporter()

virtual SourceXtractor::ProgressReporter::~ProgressReporter ( )
virtualdefault

◆ ProgressReporter()

SourceXtractor::ProgressReporter::ProgressReporter ( )
default

Member Function Documentation

◆ handleMessage() [1/2]

virtual void SourceXtractor::Observer< bool >::handleMessage ( const bool & message)
virtual

To be called when the full processing is done.

Implements SourceXtractor::Observer< bool >.

◆ handleMessage() [2/2]

virtual void SourceXtractor::Observer< std::list< ProgressInfo > >::handleMessage ( const std::list< ProgressInfo > & message)
virtual

To be called when there are updates on the progress

Parameters
infoA dictionary, where the key is the task or subprocess name (i.e. segmentation), and the value a pair, where the first is the number of entities processed, and the second the total, or -1 if unknown.

Implements SourceXtractor::Observer< std::list< ProgressInfo > >.


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