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
User Class Reference

A user has all the properties needed for defining a training plan. More...

#include <User.h>

Public Member Functions

 User ()
 
 User (UserPtr pOther)
 

Static Public Member Functions

static std::map< wxString, UserPtr > & GetUsers ()
 Returns references to all users by name. More...
 
static UserPtr GetUser (wxString const &name)
 
static UserPtr AddUser (wxString const &name)
 
static wxString GetName (UserPtr pUser)
 
static UserPtr GetUser ()
 
static void SetCurrentUser (UserPtr pUser)
 

Public Attributes

PTUnit unit
 The distance unit. More...
 
PTLevel level
 The training level. More...
 
PTDistance distance
 The competition distance. More...
 
int pulse
 The lactate threshold pulse. More...
 
bool use_pace
 True if pace is set. More...
 
wxDateTime raceDate
 Date of competition. More...
 
int calculatorSpeedMin
 
int calculatorSpeedSec
 

Detailed Description

A user has all the properties needed for defining a training plan.

Constructor & Destructor Documentation

◆ User() [1/2]

User::User ( )

◆ User() [2/2]

User::User ( UserPtr  pOther)

Member Function Documentation

◆ AddUser()

static UserPtr User::AddUser ( wxString const &  name)
static

Add a named user and get a User structure back.

Returns
The user attributes for the created user.

◆ GetName()

static wxString User::GetName ( UserPtr  pUser)
static

Returns name of a user.

Parameters
pUserUser to get name for.

◆ GetUser() [1/2]

static UserPtr User::GetUser ( wxString const &  name)
static

Get a named user.

Parameters
nameThe name of the user

◆ GetUser() [2/2]

static UserPtr User::GetUser ( )
static

Get the active / current user

◆ GetUsers()

static std::map<wxString,UserPtr>& User::GetUsers ( )
static

Returns references to all users by name.

◆ SetCurrentUser()

static void User::SetCurrentUser ( UserPtr  pUser)
static

Set the active / current user.

Member Data Documentation

◆ calculatorSpeedMin

int User::calculatorSpeedMin

◆ calculatorSpeedSec

int User::calculatorSpeedSec

◆ distance

PTDistance User::distance

The competition distance.

◆ level

PTLevel User::level

The training level.

◆ pulse

int User::pulse

The lactate threshold pulse.

◆ raceDate

wxDateTime User::raceDate

Date of competition.

◆ unit

PTUnit User::unit

The distance unit.

◆ use_pace

bool User::use_pace

True if pace is set.


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