ListData< T > Class Template Reference

List implementation ready to be shared on network. More...

#include <Types/ListData.h>

Inheritance diagram for ListData< T >:
Data

List of all members.

Public Member Functions

 ~ListData ()
 Free all the Data contained.
void add (T *pData)
 Adds a new data in the list.
const QList< T * > & dataList () const
 Gets the data.
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
void remove (T *pData)

Detailed Description

template<typename T>
class ListData< T >

List implementation ready to be shared on network.


Member Function Documentation

template<typename T >
void ListData< T >::add ( T *  data  )  [inline]

Adds a new data in the list.

Parameters:
data 
template<typename T >
QByteArray ListData< T >::data (  )  const [inline, virtual]

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

Returns:

Implements Data.

template<typename T >
const QList< T * > & ListData< T >::dataList (  )  const [inline]

Gets the data.

Returns:
template<typename T >
int ListData< T >::load ( const QByteArray &  data,
int  index = 0 
) [inline, 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.


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