Zivid C++ API 2.19.0+b5c53d0f-1
Zivid::Experimental::SupportBundle::Progress Class Reference

A view of a support bundle collection's progress, from Future::progress. More...

#include <Zivid/Experimental/SupportBundle.h>

Classes

struct  Update
 A snapshot of how far collection has come. More...

Public Member Functions

ZIVID_CORE_EXPORT Update latest () const
 Returns the newest update without blocking.
ZIVID_CORE_EXPORT Detail::ProgressIterator begin () const
 Returns an iterator at the newest update. Used by range-based for loops.

Static Public Member Functions

static ZIVID_CORE_EXPORT Detail::ProgressSentinel end ()
 Returns the end of the range, reached when collection has finished or failed.

Detailed Description

A view of a support bundle collection's progress, from Future::progress.

It can be used in two ways, which can be mixed:

  • iterate over it in a range-based for loop. Each step blocks until a new update arrives, and the loop ends when collection has finished or failed. Use this from a worker thread.
  • call latest to poll the newest update without blocking, for example from a UI timer.

Iteration starts at the newest update and skips updates that arrive while the loop body runs. The last update is 100 percent when collection succeeds. Errors are not reported here; call Future::get to get them.

Member Function Documentation

◆ begin()

ZIVID_CORE_EXPORT Detail::ProgressIterator Zivid::Experimental::SupportBundle::Progress::begin ( ) const

Returns an iterator at the newest update. Used by range-based for loops.

◆ end()

ZIVID_CORE_EXPORT Detail::ProgressSentinel Zivid::Experimental::SupportBundle::Progress::end ( )
static

Returns the end of the range, reached when collection has finished or failed.

◆ latest()

ZIVID_CORE_EXPORT Update Zivid::Experimental::SupportBundle::Progress::latest ( ) const

Returns the newest update without blocking.


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