PatientData Class Reference

Information about the patient itself (such as his name / age, ...). More...

#include <Types/PatientData.h>

Inheritance diagram for PatientData:
Data

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]
Parameters:
parent 
PatientData::PatientData ( const QString &  name,
short int  age,
QObject *  parent = 0 
) [inline]
Parameters:
name 
age 
parent 

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:
newAge 
void PatientData::setName ( const QString &  newName  )  [inline]

Change the patient name.

Parameters:
newName 

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:
 All Classes Functions Variables Enumerations Properties
Generated on Tue Sep 13 01:46:03 2011 for MedCenter by  doxygen 1.6.3