Running Manager  1.7
API for Running Manager (https://github.com/HWiman-ICONIC/running-manager)
D:/dev/running-manager/Week.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <list>
4 #include <wx/string.h>
5 #include <Training.h>
6 
12 struct Week {
16  Week();
17 
22  wxString ToString();
23 
28  wxString GetPhaseString() const;
29 
35  bool SetPhase( wxString const &sPhase );
36 
43  void GetTime( wxTimeSpan &minTime, wxTimeSpan &maxTime, wxTimeSpan &avgSpan );
44 
52  void GetDistance( double &minDist, double &maxDist, double &avgDist, PTUnit const &unit );
53 
57  void Sort();
58 
59  int number;
61  std::list<Training> training;
62 };
PTUnit
Unit.
Definition: Defines.h:69
PTPhase cPhase
Definition: Week.h:60
wxString ToString()
Return human readable string.
A training week.
Definition: Week.h:12
int number
Definition: Week.h:59
std::list< Training > training
Definition: Week.h:61
void GetDistance(double &minDist, double &maxDist, double &avgDist, PTUnit const &unit)
Get total min, max and average distance for this week.
bool SetPhase(wxString const &sPhase)
Set phase for this week.
PTPhase
Training program phase.
Definition: Defines.h:116
void Sort()
Sort week based on training dates.
wxString GetPhaseString() const
Get which phase this week is in.
void GetTime(wxTimeSpan &minTime, wxTimeSpan &maxTime, wxTimeSpan &avgSpan)
Get total min, max and average time fro this week.
Week()
Constructor.