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

Base class for a section. More...

#include <Section.h>

Inheritance diagram for SectionBase:
SectionDistance SectionGroup SectionTime

Public Member Functions

 SectionBase (PTZone azone)
 
virtual wxString ToString (PTUnit const &outUnit, bool bZone=true, bool bTime=true)=0
 
void Add (SectionPtr pSubSection)
 
virtual void GetTime (wxTimeSpan &minTime, wxTimeSpan &maxTime, wxTimeSpan &avgSpan)=0
 
virtual void GetDistance (double &minDist, double &maxDist, double &avgDist, PTUnit const &unit)=0
 

Static Public Member Functions

static SectionPtr Create (PTZone zone, wxTimeSpan time)
 
static SectionPtr Create (PTZone zone, double distance, PTUnit unit)
 
static SectionPtr Create (PTZone, int nRepetitions)
 

Public Attributes

PTZone zone
 
wxString shortName
 
wxString description
 
std::list< SectionPtrsubSections
 

Detailed Description

Base class for a section.

A section is a part of a Training or activity.

Constructor & Destructor Documentation

◆ SectionBase()

SectionBase::SectionBase ( PTZone  azone)
inline

Member Function Documentation

◆ Add()

void SectionBase::Add ( SectionPtr  pSubSection)

◆ Create() [1/3]

static SectionPtr SectionBase::Create ( PTZone  zone,
wxTimeSpan  time 
)
static

◆ Create() [2/3]

static SectionPtr SectionBase::Create ( PTZone  zone,
double  distance,
PTUnit  unit 
)
static

◆ Create() [3/3]

static SectionPtr SectionBase::Create ( PTZone  ,
int  nRepetitions 
)
static

◆ GetDistance()

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

Implemented in SectionTime, SectionDistance, and SectionGroup.

◆ GetTime()

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

Implemented in SectionTime, SectionDistance, and SectionGroup.

◆ ToString()

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

Implemented in SectionTime, SectionDistance, and SectionGroup.

Member Data Documentation

◆ description

wxString SectionBase::description

◆ shortName

wxString SectionBase::shortName

◆ subSections

std::list<SectionPtr> SectionBase::subSections

◆ zone

PTZone SectionBase::zone

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