Samchon Framework for CPP
1.0.0
|
Event representing a progress. More...
#include <ProgressEvent.hpp>
Public Member Functions | |
ProgressEvent (EventDispatcher *source, size_t numerator, size_t denominator) | |
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... | |
Public Member Functions inherited from samchon::library::Event | |
Event (EventDispatcher *source, int type) | |
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... | |
Protected Attributes inherited from samchon::library::Event | |
EventDispatcher * | source |
Source of the event. More... | |
int | type |
Type of the event. More... | |
|
inline |
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 55 of file ProgressEvent.hpp.
References denominator, and numerator.
|
inline |
Get numerator, number of current progress.
Definition at line 66 of file ProgressEvent.hpp.
References numerator.
|
inline |
Get denominator, number of total progress.
Definition at line 74 of file ProgressEvent.hpp.
References denominator.
|
inline |
Get percentage of the progress.
Definition at line 82 of file ProgressEvent.hpp.
|
protected |
The number of current progress.
Definition at line 32 of file ProgressEvent.hpp.
Referenced by getNumerator(), and ProgressEvent().
|
protected |
The number of total progress.
Definition at line 38 of file ProgressEvent.hpp.
Referenced by getDenominator(), and ProgressEvent().