PatientData Class Reference
Information about the patient itself (such as his name / age, ...).
More...
#include <Types/PatientData.h>
List of all members.
Public Types |
enum | PatientDataIdentifier { PDI_NAME = 101,
PDI_AGE,
PDI_ROOM
} |
| Identifiers for the PatientData segment.
|
Public Member Functions |
| PatientData (QObject *parent=0) |
| PatientData (const QString &name, short int age, QObject *parent=0) |
QByteArray | data () const |
| Gets the data in the form of a QByteArray (ready to be shared on the network).
|
int | load (const QByteArray &data, int index=0) |
| load some data from a QByteArray
|
const QString & | name () const |
short int | age () const |
int | room () const |
void | setName (const QString &newName) |
| Change the patient name.
|
void | setAge (const short int newAge) |
| Change the patient age.
|
Properties |
QString | name |
| returns the name of the Patient
|
int | age |
| Gets the age.
|
int | room |
| Gets the room.
|
Detailed Description
Information about the patient itself (such as his name / age, ...).
Constructor & Destructor Documentation
PatientData::PatientData |
( |
QObject * |
parent = 0 |
) |
[inline] |
PatientData::PatientData |
( |
const QString & |
name, |
|
|
short int |
age, |
|
|
QObject * |
parent = 0 | |
|
) |
| | [inline] |
Member Function Documentation
QByteArray PatientData::data |
( |
|
) |
const [virtual] |
Gets the data in the form of a QByteArray (ready to be shared on the network).
- Returns:
Implements Data.
int PatientData::load |
( |
const QByteArray & |
data, |
|
|
int |
index = 0 | |
|
) |
| | [virtual] |
load some data from a QByteArray
- Parameters:
-
| data | the data to load |
| index | the where to read |
- Returns:
- the number of bytes read
Implements Data.
void PatientData::setAge |
( |
const short int |
newAge |
) |
[inline] |
Change the patient age.
- Parameters:
-
void PatientData::setName |
( |
const QString & |
newName |
) |
[inline] |
Change the patient name.
- Parameters:
-
Property Documentation
short int PatientData::age [read] |
Gets the age.
- Returns:
- the age
const QString & PatientData::name [read] |
returns the name of the Patient
- Returns:
- the name
short int PatientData::room [read] |
Gets the room.
- Returns:
- the room
The documentation for this class was generated from the following files: