![]() |
Limb Range Analyzer
Cross-platform application for human limb range analysis.
|
Session class encapsulates daily progress of a Client's exercise measurement. More...
#include <session.hpp>
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. | |
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.
| Session::Session | ( | ) |
| 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.
| Session::~Session | ( | ) |
Session class base destructor.
Default class destructor needed for memory deallocation.
| 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.
| exercise | - an exercise record meant for addition to a session |
| QList< QSharedPointer< Exercise > > & Session::Session_GetExerciseList | ( | ) |
| QString & Session::Session_GetID | ( | ) |
Member function meant for session identifier returning.
Getter function used in order to acquire mID member variable.