daeDatabase Class Reference
#include <daeDatabase.h>
Inheritance diagram for daeDatabase:
Detailed Description
ThedaeDatabase
class implements the COLLADA runtime database interface.
Public Member Functions | |
virtual | ~daeDatabase () |
Destructor. | |
virtual daeInt | setMeta (daeMetaElement *_topMeta)=0 |
Sets the top meta object. | |
Collections | |
virtual daeInt | insertCollection (daeString name, daeElement *dom, daeCollection **collection=NULL)=0 |
Creates a new collection, defining its root as the dom object; returns an error if the collection name already exists. | |
virtual daeInt | insertCollection (daeString name, daeCollection **collection=NULL)=0 |
Creates a new domCOLLADA root element and a new collection; returns an error if the collection name already exists. | |
virtual daeInt | createCollection (daeString name, daeElement *dom, daeCollection **collection=NULL)=0 |
Creates a new collection, defining its root as the dom object; returns an error if the collection name already exists. | |
virtual daeInt | createCollection (daeString name, daeCollection **collection=NULL)=0 |
Creates a new domCOLLADA root element and a new collection; returns an error if the collection name already exists. | |
virtual daeInt | insertCollection (daeCollection *c)=0 |
Inserts an already existing collection into the database. | |
virtual daeInt | removeCollection (daeCollection *collection)=0 |
Removes a collection from the database. | |
virtual daeUInt | getCollectionCount ()=0 |
Gets the number of collections. | |
virtual daeCollection * | getCollection (daeUInt index)=0 |
Gets a collection based on the collection index. | |
virtual daeCollection * | getCollection (daeString name)=0 |
Gets a collection based on the collection name. | |
virtual daeString | getCollectionName (daeUInt index)=0 |
Gets a collection name. | |
virtual daeBool | isCollectionLoaded (daeString name)=0 |
Indicates if a collection is loaded or not. | |
Elements | |
virtual daeUInt | getTypeCount ()=0 |
Gets the number of types in the database. | |
virtual daeString | getTypeName (daeUInt index)=0 |
Retrieves the name of a type of object inserted in the database. | |
virtual daeInt | insertElement (daeCollection *collection, daeElement *element)=0 |
Inserts a daeElement into the runtime database. | |
virtual daeInt | removeElement (daeCollection *collection, daeElement *element)=0 |
Removes a daeElement from the runtime database; not implemented in the reference STL implementation. | |
virtual daeInt | clear ()=0 |
Unloads all of the collections of the runtime database. | |
virtual void | validate ()=0 |
Optimizes the database. | |
Queries | |
virtual daeUInt | getElementCount (daeString name=NULL, daeString type=NULL, daeString file=NULL)=0 |
Gets the number of daeElement objects that match the search criteria Any combination of search criteria can be NULL, if a criterion is NULL all the parameters will match for this criterion. | |
virtual daeInt | getElement (daeElement **pElement, daeInt index, daeString name=NULL, daeString type=NULL, daeString file=NULL)=0 |
Returns the daeElement which matches the search criteria. | |
virtual daeInt | queryElement (daeElement **pElement, daeString genericQuery)=0 |
Returns the daeElement which matches the genericQuery parameter; not implemented. |
Member Function Documentation
|
Unloads all of the collections of the runtime database.
This function frees all the
Implemented in daeSTLDatabase. |
|
Creates a new
Implemented in daeSTLDatabase. |
|
Creates a new collection, defining its root as the
Implemented in daeSTLDatabase. |
|
Gets a collection based on the collection name.
Implemented in daeSTLDatabase. |
|
Gets a collection based on the collection index.
Implemented in daeSTLDatabase. |
|
Gets the number of collections.
Implemented in daeSTLDatabase. |
|
Gets a collection name.
Implemented in daeSTLDatabase. |
|
Returns the
Any combination of search criteria can be NULL, if a criterion is NULL all the parameters will match for this criterion. The function operates on the set of assets that match the
Implemented in daeSTLDatabase. |
|
Gets the number of daeElement objects that match the search criteria Any combination of search criteria can be NULL, if a criterion is NULL all the parameters will match for this criterion.
Hence
Implemented in daeSTLDatabase. |
|
Gets the number of types in the database.
Implemented in daeSTLDatabase. |
|
Retrieves the name of a type of object inserted in the database.
Implemented in daeSTLDatabase. |
|
Inserts an already existing collection into the database.
Implemented in daeSTLDatabase. |
|
Creates a new
Implemented in daeSTLDatabase. |
|
Creates a new collection, defining its root as the
Implemented in daeSTLDatabase. |
|
Inserts a
Implemented in daeSTLDatabase. |
|
Indicates if a collection is loaded or not.
Implemented in daeSTLDatabase. |
|
Returns the
Implemented in daeSTLDatabase. |
|
Removes a collection from the database.
Implemented in daeSTLDatabase. |
|
Removes a
Implemented in daeSTLDatabase. |
|
Sets the top meta object.
Called by
Implemented in daeSTLDatabase. |
|
Optimizes the database.
This function takes time; it is called by the interface at the end of a load operation. Some databases cannot be queried when items are being inserted; for instance, they may need to be sorted. All database search functions call Implemented in daeSTLDatabase. |
The documentation for this class was generated from the following file:
- C:/SVN_wf/COLLADA_DOM/include/dae/daeDatabase.h
©2005 Sony Computer Entertainment Inc.. All Rights Reserved.
Generated on Fri Feb 10 16:46:47 2006 for COLLADA 1.4 DOM by 1.4.3