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

A section defined by a time/duration. More...

#include <Section.h>

Inheritance diagram for SectionTime:
SectionBase

Public Member Functions

 SectionTime (PTZone zone, wxTimeSpan time)
 
virtual wxString ToString (PTUnit const &outUnit, bool bZone=true, bool bTime=true)
 
void GetTime (wxTimeSpan &minTime, wxTimeSpan &maxTime, wxTimeSpan &avgSpan)
 
void GetDistance (double &minDist, double &maxDist, double &avgDist, PTUnit const &unit)
 
- Public Member Functions inherited from SectionBase
 SectionBase (PTZone azone)
 
void Add (SectionPtr pSubSection)
 

Public Attributes

wxTimeSpan time
 
- Public Attributes inherited from SectionBase
PTZone zone
 
wxString shortName
 
wxString description
 
std::list< SectionPtrsubSections
 

Additional Inherited Members

- Static Public Member Functions inherited from SectionBase
static SectionPtr Create (PTZone zone, wxTimeSpan time)
 
static SectionPtr Create (PTZone zone, double distance, PTUnit unit)
 
static SectionPtr Create (PTZone, int nRepetitions)
 

Detailed Description

A section defined by a time/duration.

Constructor & Destructor Documentation

◆ SectionTime()

SectionTime::SectionTime ( PTZone  zone,
wxTimeSpan  time 
)
inline

Member Function Documentation

◆ GetDistance()

void SectionTime::GetDistance ( double &  minDist,
double &  maxDist,
double &  avgDist,
PTUnit const &  unit 
)
virtual

Implements SectionBase.

◆ GetTime()

void SectionTime::GetTime ( wxTimeSpan &  minTime,
wxTimeSpan &  maxTime,
wxTimeSpan &  avgSpan 
)
virtual

Implements SectionBase.

◆ ToString()

virtual wxString SectionTime::ToString ( PTUnit const &  outUnit,
bool  bZone = true,
bool  bTime = true 
)
virtual

Implements SectionBase.

Member Data Documentation

◆ time

wxTimeSpan SectionTime::time

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