Generic progress info.
More...
#include <src/utils/progress_info.h>
|
| enum | Status { PENDING_START
, PENDING_CANCELLATION
, RUNNING
, COMPLETED
} |
| enum | CompletionType { CANCELLED
, HAS_WARNING
, HAS_ERROR
, SUCCESS
} |
|
| Status | get_status () const |
| CompletionType | get_completion_type () const |
|
void | request_cancellation () |
| | To be called by the task caller.
|
|
void | mark_completed (CompletionType type, const utils::Utf8String &msg) |
| | To be called by the task itself.
|
| utils::Utf8String | get_message () const |
| | Returns a newly allocated string.
|
| std::tuple< double, utils::Utf8String > | get_progress () |
| | To be called by the task caller.
|
|
void | update_progress (double progress, const utils::Utf8String &msg) |
| | To be called by the task itself.
|
| bool | pending_cancellation () const |
Generic progress info.
- Note
- Not realtime-safe.
Definition at line 31 of file progress_info.h.
◆ CompletionType
| enum ProgressInfo::CompletionType |
◆ Status
| enum ProgressInfo::Status |
◆ get_completion_type()
| CompletionType ProgressInfo::get_completion_type |
( |
| ) |
const |
|
inline |
◆ get_message()
| utils::Utf8String ProgressInfo::get_message |
( |
| ) |
const |
|
inline |
◆ get_progress()
| std::tuple< double, utils::Utf8String > ProgressInfo::get_progress |
( |
| ) |
|
|
inline |
◆ get_status()
| Status ProgressInfo::get_status |
( |
| ) |
const |
|
inline |
◆ pending_cancellation()
| bool ProgressInfo::pending_cancellation |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: