PatientContainer Class Reference
Container for Patient data.
More...
#include <PatientContainer.h>
List of all members.
Public Member Functions |
| ~PatientContainer () |
| Delete the patient data saved in the container.
|
bool | add (Patient *pPatient) |
| Adds a new patient.
|
Patient * | get (const QString &name) |
| Gets a patient based on his name
|
QList< QString > | getPatientNameList () |
| Gets the list of patient's names.
|
QList< Patient * > | getPatientsList () |
| Gets the list of patient's data.
|
void | load (const QString &fileName) |
| Loads patients from a file.
|
bool | save (const QString &fileName) |
| Save patients in a file.
|
Detailed Description
Container for Patient data.
Member Function Documentation
void PatientContainer::add |
( |
Patient * |
pPatient |
) |
|
Adds a new patient.
- Parameters:
-
| pPatient | pointer to the new patient |
Patient * PatientContainer::get |
( |
const QString & |
name |
) |
|
Gets a patient based on his name
- Parameters:
-
| name | the name of the patient to get |
- Returns:
- the pointer to the patient
QList< QString > PatientContainer::getPatientNameList |
( |
|
) |
|
Gets the list of patient's names.
- Returns:
QList< Patient * > PatientContainer::getPatientsList |
( |
|
) |
|
Gets the list of patient's data.
- Returns:
void PatientContainer::load |
( |
const QString & |
fileName |
) |
|
Loads patients from a file.
- Parameters:
-
| fileName | name of the file where to read |
bool PatientContainer::save |
( |
const QString & |
fileName |
) |
|
Save patients in a file.
- Parameters:
-
| fileName | name of the file where to write |
The documentation for this class was generated from the following files: