dng_sniffer_task Class Reference
Class to establish scope of a named subtask in DNG processing.
More...
#include <dng_abort_sniffer.h>
List of all members.
|
Public Member Functions |
| | dng_sniffer_task (dng_abort_sniffer *sniffer, const char *name=NULL, real64 fract=0.0) |
|
void | Sniff () |
| | Check for pending user cancellation or other abort. ThrowUserCanceled will be called if one is pending.
|
| void | UpdateProgress (real64 fract) |
| void | UpdateProgress (uint32 done, uint32 total) |
|
void | Finish () |
| | Signal task completed for progress purposes.
|
Detailed Description
Class to establish scope of a named subtask in DNG processing.
Instances of this class are intended to be stack allocated.
Constructor & Destructor Documentation
| dng_sniffer_task::dng_sniffer_task |
( |
dng_abort_sniffer * |
sniffer, |
|
|
const char * |
name = NULL, |
|
|
real64 |
fract = 0.0 | |
|
) |
| | [inline] |
Inform a sniffer of a subtask in DNG processing.
- Parameters:
-
| sniffer | The sniffer associated with the host on which this processing is occurring. |
| name | The name of this subtask as a NUL terminated string. |
| fract | Percentage of total processing this task is expected to take, from 0.0 to 1.0 . |
References dng_abort_sniffer::StartTask().
Member Function Documentation
| void dng_sniffer_task::UpdateProgress |
( |
real64 |
fract |
) |
[inline] |
| void dng_sniffer_task::UpdateProgress |
( |
uint32 |
done, |
|
|
uint32 |
total | |
|
) |
| | [inline] |
Update progress on this subtask.
- Parameters:
-
| done | Amount of task completed in arbitrary integer units. |
| total | Total size of task in same arbitrary integer units as done. |
References UpdateProgress().
The documentation for this class was generated from the following file: