#include <datapackage.h>
Public Methods | |
TDataPackageList () | |
~TDataPackageList () | |
bool | Add (const string &sIdentifier, const bool *pData, bool bUnique=true, bool bAutoDelete=false) |
bool | Add (const string &sIdentifier, const double *pData, bool bUnique=true, bool bAutoDelete=false) |
bool | Add (const string &sIdentifier, const int2 *pData, bool bUnique=true, bool bAutoDelete=false) |
bool | Add (const string &sIdentifier, const int4 *pData, bool bUnique=true, bool bAutoDelete=false) |
bool | Add (const string &sIdentifier, const string *pData, bool bUnique=true, bool bAutoDelete=false) |
bool | Add (const string &sIdentifier, const TDataPackageList *pData, bool bUnique=true, bool bAutoDelete=false) |
bool | Add (const string &sIdentifier, const TObjectID *pData, bool bUnique=true, bool bAutoDelete=false) |
bool | Add (const string &sIdentifier, const TPoint *pData, bool bUnique=true, bool bAutoDelete=false) |
void | DeleteAll () |
bool | Get (const string &sIdentifier, bool *pData, bool bUnique=true) |
bool | Get (const string &sIdentifier, double *pData, bool bUnique=true) |
bool | Get (const string &sIdentifier, int2 *pData, bool bUnique=true) |
bool | Get (const string &sIdentifier, int4 *pData, bool bUnique=true) |
bool | Get (const string &sIdentifier, string *pData, bool bUnique=true) |
bool | Get (const string &sIdentifier, TDataPackageList *pData, bool bUnique=true) |
bool | Get (const string &sIdentifier, TObjectID *pData, bool bUnique=true) |
bool | Get (const string &sIdentifier, TPoint *pData, bool bUnique=true) |
bool | getBool (const string &identifier, bool unique=true) const |
double | getDouble (const string &identifier, bool unique=true) const |
int2 | getInt2 (const string &identifier, bool unique=true) const |
int4 | getInt4 (const string &identifier, bool unique=true) const |
const string | getString (const string &identifier, bool unique=true) const |
const TPoint | getPoint (const string &identifier, bool unique=true) const |
TDataPackageList & | operator= (const TDataPackageList &src) |
bool | save (ofstream &out) |
TDataPackage * | Search (const string &sIdentifier) const |
TDataPackage * | SearchUnique (const string &sIdentifier) const |
TDataPackage * | SearchAndExtract (const string &sIdentifier) |
TDataPackage * | SearchAndExtractUnique (const string &sIdentifier) |
void | set (const string &identifier, bool value) |
void | set (const string &identifier, double value) |
void | set (const string &identifier, int2 value) |
void | set (const string &identifier, int4 value) |
void | set (const string &identifier, const string &value) |
void | set (const string &identifier, const char *value) |
void | set (const string &identifier, const TPoint &value) |
void | showContent (int indent=0) const |
Private Methods | |
TDataPackage * | getAndExtractPackage (const string &identifier, bool unique) |
TDataPackage * | getPackage (const string &identifier, bool unique) const |
void | Indent (ofstream &out, int2 iIndent) const |
bool | WriteDataPackage (ofstream &out, const TDataPackage &pPackage, int2 iIndent=0) const |
|
Deletes all data packages. It depends on the settings of the individual TDataPackage objects if their content is also deleted.
|
|
Adds a data package containing a TPoint to the list of data packages.
|
|
Adds a data package containing a TObjectID to the list of data packages.
|
|
Adds a data package containing a TDataPackageList to the list of data packages.
|
|
Adds a data package containing a
|
|
Adds a data package containing a
|
|
Adds a data package containing a
|
|
Adds a data package containing a
|
|
Adds a data package containing a
|
|
Deletes all elements of the list as well as the list itself. |
|
Reads a TDataPackage object from a list of datapackages. After reading the data package the package is deleted.
|
|
Reads a TDataPackage object from a list of datapackages. After reading the data package the package is deleted.
|
|
Reads a TDataPackage object from a list of datapackages. After reading the data package the package is deleted.
|
|
Reads a TDataPackage object from a list of datapackages. After reading the data package the package is deleted.
|
|
Reads a TDataPackage object from a list of datapackages. After reading the data package the package is deleted.
|
|
Reads a TDataPackage object from a list of datapackages. After reading the data package the package is deleted.
|
|
Reads a TDataPackage object from a list of datapackages. After reading the data package the package is deleted.
|
|
Reads a TDataPackage object from a list of datapackages. After reading the data package the package is deleted.
|
|
Looks up a package and deletes it from the list.
|
|
Reads a
|
|
Reads a
|
|
Reads an
|
|
Reads an
|
|
Looks up a package without deleting it.
|
|
Reads an object TPoint from a list of data packages. In contrary to get it will not delete anything and also note that the return value is used in a different way.
|
|
Reads an string from a list of data packages. In contrary to get it will not delete anything and also note that the return value is used in a different way.
|
|
Writes a number of spaces to the ofstream. (This is used to make the output file a bit nicer).
|
|
FIXME |
|
Writes a list of data packages to a stream. Note that calling this method will also delete all elements in the data package list.
|
|
Searches for a data package with a given identifier.
|
|
Searches for a data package with a given identifier and extracts the data package from the list of data packages. It is your duty to delete the data package after that.
|
|
Searches for a data package with a given identifier and extracts the data package from the list of data packages if the identifier was unique. It is your duty to delete the data package after that.
|
|
Searches for a data package with a given identifier and ensures that the identifier is unique.
|
|
Sets a data package with the name identifier to value. If the data package does not exist it is created.
|
|
Sets a data package with the name identifier to value. If the data package does not exist it is created.
|
|
Sets a data package with the name identifier to value. If the data package does not exist it is created.
|
|
Sets a data package with the name identifier to value. If the data package does not exist it is created.
|
|
Sets a data package with the name identifier to value. If the data package does not exist it is created.
|
|
Sets a data package with the name identifier to value. If the data package does not exist it is created.
|
|
Sets a data package with the name identifier to value. If the data package does not exist it is created.
|
|
For debugging only! This method writes the content of the datapackage list to the log file. |
|
Writes a data package to an ofstream.
|