Samchon Framework for CPP
1.0.0
|
Event representing a progress. More...
#include <ProgressEvent.hpp>
Public Member Functions | |
ProgressEvent (EventDispatcher *, size_t, size_t) | |
Construct from source and progress. More... | |
auto | getNumerator () const -> size_t |
Get numerator, number of current progress. More... | |
auto | getDenominator () const -> size_t |
Get denominator, number of total progress. More... | |
auto | getPercent () const -> double |
Get percentage of the progress. More... | |
![]() | |
Event (EventDispatcher *, int) | |
Construct from source and type. More... | |
auto | getSource () const -> EventDispatcher * |
Get source of the Event. More... | |
auto | getType () const -> int |
Get type of the Event. More... | |
Protected Attributes | |
size_t | numerator |
The number of current progress. More... | |
size_t | denominator |
The number of total progress. More... | |
![]() | |
EventDispatcher * | source |
Source of the event. More... | |
int | type |
Type of the event. More... | |
ProgressEvent::ProgressEvent | ( | EventDispatcher * | source, |
size_t | numerator, | ||
size_t | denominator | ||
) |
Construct from source and progress.
source | Source of the event; who made the event |
numerator | The number of current progress |
denominator | The number of total progress |
exception | denominator is zero |
Definition at line 5 of file ProgressEvent.cpp.
References denominator, and numerator.
auto ProgressEvent::getNumerator | ( | ) | const -> size_t |
Get numerator, number of current progress.
Definition at line 12 of file ProgressEvent.cpp.
References numerator.
auto ProgressEvent::getDenominator | ( | ) | const -> size_t |
Get denominator, number of total progress.
Definition at line 16 of file ProgressEvent.cpp.
References denominator.
auto ProgressEvent::getPercent | ( | ) | const -> double |
Get percentage of the progress.
Definition at line 20 of file ProgressEvent.cpp.
References denominator, and numerator.
|
protected |
The number of current progress.
Definition at line 34 of file ProgressEvent.hpp.
Referenced by getNumerator(), getPercent(), and ProgressEvent().
|
protected |
The number of total progress.
Definition at line 40 of file ProgressEvent.hpp.
Referenced by getDenominator(), getPercent(), and ProgressEvent().