Lightweight 0.20251202.0
Loading...
Searching...
No Matches
Lightweight::SqlBackup::ErrorTrackingProgressManager Class Reference

Base class for progress managers that tracks errors automatically. More...

#include <SqlBackup.hpp>

Inheritance diagram for Lightweight::SqlBackup::ErrorTrackingProgressManager:
Lightweight::SqlBackup::ProgressManager

Public Member Functions

void Update (Progress const &progress) override
 Gets called when the progress of an individual backup/restore operation changes.
 
size_t ErrorCount () const noexcept override
 Returns the number of errors encountered during the operation.
 
- Public Member Functions inherited from Lightweight::SqlBackup::ProgressManager
 ProgressManager (ProgressManager const &)=default
 
ProgressManageroperator= (ProgressManager const &)=default
 
 ProgressManager (ProgressManager &&)=default
 
ProgressManageroperator= (ProgressManager &&)=default
 
virtual void AllDone ()=0
 Gets called when all backup/restore operations are finished.
 
virtual void SetMaxTableNameLength (size_t)
 
virtual void SetTotalItems (size_t)
 
virtual void AddTotalItems (size_t)
 
virtual void OnItemsProcessed (size_t)
 

Detailed Description

Base class for progress managers that tracks errors automatically.

Definition at line 212 of file SqlBackup.hpp.

Member Function Documentation

◆ Update()

void Lightweight::SqlBackup::ErrorTrackingProgressManager::Update ( Progress const &  p)
inlineoverridevirtual

Gets called when the progress of an individual backup/restore operation changes.

Implements Lightweight::SqlBackup::ProgressManager.

Definition at line 215 of file SqlBackup.hpp.

References Lightweight::SqlBackup::Progress::state.

◆ ErrorCount()

size_t Lightweight::SqlBackup::ErrorTrackingProgressManager::ErrorCount ( ) const
inlineoverridevirtualnoexcept

Returns the number of errors encountered during the operation.

Reimplemented from Lightweight::SqlBackup::ProgressManager.

Definition at line 221 of file SqlBackup.hpp.


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