Running Manager  1.7
API for Running Manager (https://github.com/HWiman-ICONIC/running-manager)
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Zone Struct Reference

Zones. More...

#include <Zone.h>

Public Member Functions

 Zone ()
 Constructor. More...
 
 Zone (PTZone zone, wxString shortName, wxString description, double minPercent, double maxPercent)
 Constructor. More...
 
wxTimeSpan GetAveragePace () const
 
wxTimeSpan GetTimeSpan (wxString const &s)
 

Static Public Member Functions

static void GetMinSec (wxTimeSpan const &dt, int &minutes, int &seconds)
 
static wxString GetTimeString (wxTimeSpan const &dt, PTUnit const &unit)
 
static boost::shared_array< ZoneGetZoneMap ()
 

Public Attributes

PTZone zone
 
wxString shortName
 
wxString description
 
double minPercent
 
double maxPercent
 
wxTimeSpan minPace
 
wxTimeSpan maxPace
 

Static Public Attributes

static boost::shared_array< ZonecpZones
 

Detailed Description

Zones.

A zone is defined by a heart rate interval, speed interval and/or feeling.

Todo:
Enable defining zones with boost property_tree and xml

Constructor & Destructor Documentation

◆ Zone() [1/2]

Zone::Zone ( )
inline

Constructor.

◆ Zone() [2/2]

Zone::Zone ( PTZone  zone,
wxString  shortName,
wxString  description,
double  minPercent,
double  maxPercent 
)

Constructor.

Parameters
zoneZone
shortNameHuman readable name
descriptionHuman readable description of feeling
minPercentMin heart rate
maxPercentMax heart rate

Member Function Documentation

◆ GetAveragePace()

wxTimeSpan Zone::GetAveragePace ( ) const

◆ GetMinSec()

static void Zone::GetMinSec ( wxTimeSpan const &  dt,
int &  minutes,
int &  seconds 
)
static

◆ GetTimeSpan()

wxTimeSpan Zone::GetTimeSpan ( wxString const &  s)

◆ GetTimeString()

static wxString Zone::GetTimeString ( wxTimeSpan const &  dt,
PTUnit const &  unit 
)
static

◆ GetZoneMap()

static boost::shared_array<Zone> Zone::GetZoneMap ( )
static

Member Data Documentation

◆ cpZones

boost::shared_array<Zone> Zone::cpZones
static

◆ description

wxString Zone::description

◆ maxPace

wxTimeSpan Zone::maxPace

◆ maxPercent

double Zone::maxPercent

◆ minPace

wxTimeSpan Zone::minPace

◆ minPercent

double Zone::minPercent

◆ shortName

wxString Zone::shortName

◆ zone

PTZone Zone::zone

The documentation for this struct was generated from the following file: