A training plan.
More...
#include <Plan.h>
◆ Plan() [1/2]
◆ Plan() [2/2]
Plan::Plan |
( |
PTDistance |
distance, |
|
|
PTLevel |
level, |
|
|
wxDateTime |
date, |
|
|
wxArrayInt |
weekDayOrder |
|
) |
| |
Constructor.
- Parameters
-
distance | Competition distance |
level | Traing plan level |
date | Competition date |
weekDayOrder | Which weekdays to have long runs, rest, intervals etc. |
◆ CreateProgram()
void Plan::CreateProgram |
( |
PTUnit const & |
unit | ) |
|
Create training program from given settings.
Internally calls CreatePlan, which calls SetPlan.
- Parameters
-
unit | Unit of distance (km|miles) |
◆ CreateTraining()
void Plan::CreateTraining |
( |
wxString const & |
sTraining, |
|
|
wxString const & |
sIntensity, |
|
|
wxDateTime const & |
day, |
|
|
Training & |
training |
|
) |
| |
Create training/activity from string.
- Parameters
-
sTraining | Input string |
sIntensity | Output intensity |
day | Day |
training | Training/activity |
◆ GetTraining()
std::list<Training*> Plan::GetTraining |
( |
wxDateTime const & |
day | ) |
|
Get training for this day.
Possibly two trainings so a list is returned
- Parameters
-
- Returns
- Training(s) for this day
◆ GetTrainingTypePerWeekDay()
std::vector<std::vector<int> > Plan::GetTrainingTypePerWeekDay |
( |
| ) |
|
Get number of instances for each training type for each weekday.
- Returns
- Vector with seven entries, one per weekday starting with Monday. The entries are vectors with number of instances for each of the training types
◆ Print()
Helper printing the training program to current log output.
◆ SaveCsv()
bool Plan::SaveCsv |
( |
wxString const & |
filename | ) |
|
Save training program in Comma Separated Value file.
This file can be imported in e.g. Google Calendar.
- Parameters
-
- Returns
- True on success
◆ ToString()
wxString Plan::ToString |
( |
| ) |
|
Convert this plan to a string.
- Returns
- plan as a string
◆ date
◆ distance
◆ distanceString
std::map<int, wxString> Plan::distanceString |
◆ level
◆ outUnit
◆ programLength
wxDateSpan Plan::programLength |
◆ startTime
wxDateTime Plan::startTime |
◆ textFile
wxTextFile Plan::textFile |
◆ weekDayOrder
wxArrayInt Plan::weekDayOrder |
◆ weeks
std::vector<Week> Plan::weeks |
The documentation for this struct was generated from the following file: