![]() |
Running Manager
1.7
API for Running Manager (https://github.com/HWiman-ICONIC/running-manager)
|
A training week. More...
#include <Week.h>
Public Member Functions | |
| Week () | |
| Constructor. More... | |
| wxString | ToString () |
| Return human readable string. More... | |
| wxString | GetPhaseString () const |
| Get which phase this week is in. More... | |
| bool | SetPhase (wxString const &sPhase) |
| Set phase for this week. More... | |
| void | GetTime (wxTimeSpan &minTime, wxTimeSpan &maxTime, wxTimeSpan &avgSpan) |
| Get total min, max and average time fro this week. More... | |
| void | GetDistance (double &minDist, double &maxDist, double &avgDist, PTUnit const &unit) |
| Get total min, max and average distance for this week. More... | |
| void | Sort () |
| Sort week based on training dates. More... | |
Public Attributes | |
| int | number |
| PTPhase | cPhase |
| std::list< Training > | training |
A training week.
Contains a number of Traning instances or activities
| Week::Week | ( | ) |
Constructor.
| void Week::GetDistance | ( | double & | minDist, |
| double & | maxDist, | ||
| double & | avgDist, | ||
| PTUnit const & | unit | ||
| ) |
Get total min, max and average distance for this week.
| minDist | Min |
| maxDist | Max |
| avgDist | Average |
| unit | km|miles |
| wxString Week::GetPhaseString | ( | ) | const |
Get which phase this week is in.
| void Week::GetTime | ( | wxTimeSpan & | minTime, |
| wxTimeSpan & | maxTime, | ||
| wxTimeSpan & | avgSpan | ||
| ) |
Get total min, max and average time fro this week.
| minTime | Min |
| maxTime | Max |
| avgSpan | Average |
| bool Week::SetPhase | ( | wxString const & | sPhase | ) |
Set phase for this week.
| sPhase |
| void Week::Sort | ( | ) |
Sort week based on training dates.
| wxString Week::ToString | ( | ) |
Return human readable string.
| PTPhase Week::cPhase |
| int Week::number |
| std::list<Training> Week::training |
1.8.14