ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::utility::CountingProgressReporter Class Reference

#include <ProgressReporters.h>

Public Member Functions

 CountingProgressReporter (std::function< bool(double)> f)
 
void SetTotal (int64_t total)
 
bool Update (int64_t count)
 
void Finish ()
 
void operator++ ()
 

Detailed Description

Progress reporting through update_progress(double percent) function. If you have a set number of items to process (or bytes to load), CountingProgressReporter will convert that to percentages (you still have to specify how many items you have, of course)

Definition at line 19 of file ProgressReporters.h.

Constructor & Destructor Documentation

◆ CountingProgressReporter()

cloudViewer::utility::CountingProgressReporter::CountingProgressReporter ( std::function< bool(double)>  f)
inline

Definition at line 21 of file ProgressReporters.h.

Member Function Documentation

◆ Finish()

◆ operator++()

void cloudViewer::utility::CountingProgressReporter::operator++ ( )
inline

Definition at line 40 of file ProgressReporters.h.

◆ SetTotal()

◆ Update()


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