Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

TPEList Class Template Reference

Extented version (load + save) of TPList. More...

#include <plist.h>

Inheritance diagram for TPEList:

Inheritance graph
[legend]
Collaboration diagram for TPEList:

Collaboration graph
[legend]
List of all members.

Public Methods

bool load (TDataPackageList *in, const string &identifier, bool unique=true)
virtual bool save (TDataPackageList *out, const string &identifier, bool unique=true) const

Detailed Description

template<class X>
class TPEList< X >

Extented version (load + save) of TPList.

Author:
Marco Krohn <marco.krohn@gmx.de>
Version:
Id:
plist.h,v 1.12 2002/05/10 10:35:19 mkrohn5 Exp
See also:
TPEList
This is an extended version of the TPList in the sense that it also handles datapackages correctly and therefore allows loading and saving objects which provide the neccessary methods.

FIXME: example


Member Function Documentation

template<class X>
bool TPEList< X >::load TDataPackageList   in,
const string &    identifier,
bool    unique = true
[inline]
 

Loads the list of objects from a list of data packages. Note that also the fAutoDelete flag will be restored.

Parameters:
in  The input stream of data packages.
identifier  The identifier to look for.
unique  Loads the data only if the identifier is unique.
Returns:
true means that everything was loaded correctly, otherwise this method will return false.

template<class X>
virtual bool TPEList< X >::save TDataPackageList   out,
const string &    identifier,
bool    unique = true
const [inline, virtual]
 

Creates the data packages for this list of objects and adds them to the data package list.

Parameters:
out  The list of data packages.
identifier  The identifier which is used to store and find the data.
unique  If set to true the method will check if the identifier was already used in the data package list.
Returns:
true if everything worked fine, otherwise false (e.g. if the identifier was already used in the data package list).


The documentation for this class was generated from the following file:
Generated on Thu Jun 20 18:13:28 2002 for Stellar Legacy by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001