Limb Range Analyzer
Cross-platform application for human limb range analysis.
Session Class Reference

Session class encapsulates daily progress of a Client's exercise measurement. More...

#include <session.hpp>

Inheritance diagram for Session:

Public Member Functions

 Session ()
 Default class constructor of Session. More...
 
 Session (QString id, QList< QSharedPointer< Exercise > > exerciseList)
 Parametric Session class constructor. More...
 
 ~Session ()
 Session class base destructor. More...
 
QString & Session_GetID ()
 Member function meant for session identifier returning. More...
 
QList< QSharedPointer< Exercise > > & Session_GetExerciseList ()
 Function designed for Exercise list retrieving. More...
 
void Session_AddExercise (QSharedPointer< Exercise > exercise)
 Member function with a purpose of adding single Exercise record. More...
 

Private Attributes

QString mID
 QString member variable that keeps the identifier (in form of a date) of a session.
 
QList< QSharedPointer< Exercise > > mExerciseList
 QList<QSharedPointer<Exercise>> member representing a list of exercise records.
 

Detailed Description

Session class encapsulates daily progress of a Client's exercise measurement.

This class is introduced in order to keep session records of a Client. A session is composed of a list of Exercise instances and an identifier of a Session's date.

See also
Client, Exercise

Constructor & Destructor Documentation

◆ Session() [1/2]

Session::Session ( )

Default class constructor of Session.

Base constructor of class Session.

See also
~Session()

◆ Session() [2/2]

Session::Session ( QString  id,
QList< QSharedPointer< Exercise > >  exerciseList 
)

Parametric Session class constructor.

Through this constructor, new instance of Session is created, while session ID and a list of Exercise instances is provided.

See also
~Session(), Exercise

◆ ~Session()

Session::~Session ( )

Session class base destructor.

Default class destructor needed for memory deallocation.

See also
Session(), Session(QString id, QList<QSharedPointer<Exercise>> exerciseList)

Member Function Documentation

◆ Session_AddExercise()

void Session::Session_AddExercise ( QSharedPointer< Exercise exercise)

Member function with a purpose of adding single Exercise record.

Function that uses a parameter-given Exercise and manages its insertion into Session. New entries are made in case of empty session list or if a specific exercise record does not yet exist. Previously created exercise record is overwritten.

Parameters
exercise- an exercise record meant for addition to a session
See also
Exercise

◆ Session_GetExerciseList()

QList< QSharedPointer< Exercise > > & Session::Session_GetExerciseList ( )

Function designed for Exercise list retrieving.

This function returns Exercise list member variable.

Returns
QList<QSharedPointer<Exercise>> - a list of Exercise object pointers to be returned

◆ Session_GetID()

QString & Session::Session_GetID ( )

Member function meant for session identifier returning.

Getter function used in order to acquire mID member variable.

Returns
QString - text string carrying Session date ID

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