A training/activity.
More...
#include <Training.h>
|
wxString | ToString (bool includeDate, PTUnit const &unit) |
| Return human readable string. More...
|
|
void | GetTime (wxTimeSpan &minTime, wxTimeSpan &maxTime, wxTimeSpan &avgSpan) |
| Get min, max and average time for this activity. More...
|
|
void | GetDistance (double &minDist, double &maxDist, double &avgDist, PTUnit const &unit) |
| Get min, max and average distance for this activity. More...
|
|
◆ compareDate()
Helper for sorting activities by date.
- Parameters
-
- Returns
- First is before second
◆ GetDistance()
void Training::GetDistance |
( |
double & |
minDist, |
|
|
double & |
maxDist, |
|
|
double & |
avgDist, |
|
|
PTUnit const & |
unit |
|
) |
| |
Get min, max and average distance for this activity.
- Parameters
-
minDist | Min |
maxDist | Max |
avgDist | Average |
unit | km|miles |
◆ GetTime()
void Training::GetTime |
( |
wxTimeSpan & |
minTime, |
|
|
wxTimeSpan & |
maxTime, |
|
|
wxTimeSpan & |
avgSpan |
|
) |
| |
Get min, max and average time for this activity.
- Parameters
-
minTime | Min |
maxTime | Max |
avgSpan | Average |
◆ ToString()
wxString Training::ToString |
( |
bool |
includeDate, |
|
|
PTUnit const & |
unit |
|
) |
| |
Return human readable string.
- Parameters
-
includeDate | Include date in returned string |
unit | Unit (km|miles) |
- Returns
- human readable string
◆ date
wxDateTime Training::date |
◆ intensity
◆ type
The documentation for this struct was generated from the following file: