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

Type of training. More...

#include <TrainingType.h>

Public Member Functions

 TrainingType ()
 Default constructor. More...
 
 TrainingType (PTTrainingType type, wxString const &shortName, wxString const &description, wxString const &format)
 Create a training type with all intensisties. More...
 
virtual ~TrainingType ()
 Destructor. More...
 
bool Create (wxString const &format)
 Create from format string. More...
 

Public Attributes

wxString shortName
 
wxString description
 
PTTrainingType type
 
std::vector< IntensityPtrintensity
 

Detailed Description

Type of training.

Constructor & Destructor Documentation

◆ TrainingType() [1/2]

TrainingType::TrainingType ( )
inline

Default constructor.

◆ TrainingType() [2/2]

TrainingType::TrainingType ( PTTrainingType  type,
wxString const &  shortName,
wxString const &  description,
wxString const &  format 
)

Create a training type with all intensisties.

Parameters
typeType of training, e.g. Recovery
shortNameHuman readable short name
descriptionHuman readable description
formatFormat string
Todo:
Use boost::property_tree and xml for formatting instead

◆ ~TrainingType()

virtual TrainingType::~TrainingType ( )
virtual

Destructor.

Member Function Documentation

◆ Create()

bool TrainingType::Create ( wxString const &  format)

Create from format string.

Parameters
formatformat string
Returns

Member Data Documentation

◆ description

wxString TrainingType::description

◆ intensity

std::vector<IntensityPtr> TrainingType::intensity

◆ shortName

wxString TrainingType::shortName

◆ type

PTTrainingType TrainingType::type

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