Data Class Reference

base class for data ready to be shared on network More...

#include <Types/Data.h>

Inheritance diagram for Data:
FileData ListData< T > OperationData PatientData VersionData

List of all members.

Public Types

enum  SegmentDataIdentifier { SDI_Version = 10, SDI_Patient = 100, SDI_Operation = 200, SDI_File = 300 }

Public Member Functions

 Data (const QString &category, QObject *parent=0)
virtual QByteArray data () const =0
 Gets the data in the form of a QByteArray (ready to be shared on the network).
virtual int load (const QByteArray &data, int index=0)=0
 load some data from a QByteArray
const QString & category () const
 Returns the category.

Static Public Member Functions

static void factory (Patient *pPatient, const QByteArray &data, int index=0, int *nbRead=NULL)
 Read all the Data available in data and fill pPatient with.

Protected Attributes

QString m_category

Detailed Description

base class for data ready to be shared on network


Member Enumeration Documentation

Identifier to recognise data when receiving messages from the network


Constructor & Destructor Documentation

Data::Data ( const QString &  category,
QObject *  parent = 0 
) [inline]
Parameters:
category the category of the data (kind of folder for Patient)
parent 

Member Function Documentation

QByteArray Data::data (  )  const [pure virtual]

Gets the data in the form of a QByteArray (ready to be shared on the network).

Returns:

Implemented in FileData, ListData< T >, OperationData, PatientData, and VersionData.

static void Data::factory ( Patient pPatient,
const QByteArray &  data,
int  index = 0,
int *  nbRead = NULL 
) [static]

Read all the Data available in data and fill pPatient with.

Parameters:
pPatient the Patient to complete
data the data to read from
index the index where to start to read
nbRead if not NULL, will contain the number of bytes read
int Data::load ( const QByteArray &  data,
int  index = 0 
) [pure virtual]

load some data from a QByteArray

Parameters:
data the data to load
index the where to read
Returns:
the number of bytes read

Implemented in FileData, ListData< T >, OperationData, PatientData, and VersionData.


Member Data Documentation

QString Data::m_category [protected]

The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Properties
Generated on Tue Sep 13 01:45:58 2011 for MedCenter by  doxygen 1.6.3