Lines Matching defs:document

44 	* Creates a new document, defining its root as the <tt><i>dom</i></tt> object; returns an error if the document name already exists.
45 * @param name Name of the new document, must be a valid URI.
46 * @param dom Existing @c domCOLLADA root element of the document
47 * @param document Pointer to a @c daeDocument pointer that receives the document created
48 * @param zaeRootDocument Indicates if the new document is the root document of a ZAE archive.
50 * @return Returns @c DAE_OK if the document was created successfully, otherwise returns a negative value as defined in daeError.h.
54 virtual daeInt insertDocument(daeString name, daeElement* dom, daeDocument** document = NULL, bool zaeRootDocument = false, const std::string& extractedFileURI = "") = 0;
56 * Creates a new @c domCOLLADA root element and a new document; returns an error if the document name already exists.
57 * @param name Name of the new document, must be a valid URI.
58 * @param document Pointer to a @c daeDocument pointer that receives the document created
59 * @return Returns DAE_OK if the document was created successfully, otherwise returns a negative value as defined in daeError.h.
62 virtual daeInt insertDocument(daeString name, daeDocument** document = NULL) = 0;
64 * Creates a new document, defining its root as the <tt><i>dom</i></tt> object; returns an error if the document name already exists.
65 * @param name Name of the new document, must be a valid URI.
66 * @param dom Existing @c domCOLLADA root element of the document
67 * @param document Pointer to a @c daeDocument pointer that receives the document created
68 * @param zaeRootDocument Indicates if the new document is the root document of a ZAE archive.
70 * @return Returns @c DAE_OK if the document was created successfully, otherwise returns a negative value as defined in daeError.h.
73 virtual daeInt createDocument(daeString name, daeElement* dom, daeDocument** document = NULL, bool zaeRootDocument = false, const std::string& extractedFileURI = "") = 0;
75 * Creates a new @c domCOLLADA root element and a new document; returns an error if the document name already exists.
76 * @param name Name of the new document, must be a valid URI.
77 * @param document Pointer to a @c daeDocument pointer that receives the document created
78 * @return Returns DAE_OK if the document was created successfully, otherwise returns a negative value as defined in daeError.h.
80 virtual daeInt createDocument(daeString name, daeDocument** document = NULL) = 0;
83 * Inserts an already existing document into the database.
84 * @param c The document to insert.
85 * @return Returns DAE_OK if the document was inserted successfully, otherwise returns a negative value as defined in daeError.h.
90 * Removes a document from the database.
91 * @param document Document to remove from the database
92 * @return Returns DAE_OK if the document was successfully removed, otherwise returns a negative value as defined in daeError.h.
94 virtual daeInt removeDocument(daeDocument* document) = 0;
101 * Gets a document based on the document index.
102 * @param index Index of the document to get.
103 * @return Returns a pointer on the document, or NULL if not found.
107 * Gets a document based on the document index.
108 * @param index Index of the document to get.
109 * @return Returns a pointer on the document, or NULL if not found.
113 * Gets a document based on the document name.
114 * @param name The name of the document as a URI.
115 * @param skipUriNormalization Use the document name as is; don't normalize it first.
117 * @return Returns a pointer to the document, or NULL if not found.
122 * Gets a document name.
123 * @param index Index of the document to get.
124 * @return Returns the name of the document at the given index.
128 * Indicates if a document is loaded or not.
129 * @param name Name of the document as a URI.
130 * @return Returns true if the document is loaded, false otherwise.
137 * @param document Document in which the @c daeElement lives.
141 virtual daeInt insertElement(daeDocument* document,
145 * @param document Document in which the @c daeElement lives.
149 virtual daeInt removeElement(daeDocument* document,
192 * Find an element with the given ID in a specific document.
194 * @param doc The document to search in.
202 * @param doc The document to search in, or NULL to search in all documents.
212 * @param doc The document to search in, or NULL to search in all documents.
220 * @param doc The document to search in, or NULL to search in all documents.
234 * @param doc The document to search in, or NULL to search in all documents.
249 * @param doc The document to search in, or NULL to search in all documents.
260 * @param doc The document to search in, or NULL to search in all documents.
295 inline daeInt insertCollection(daeString name, daeElement* dom, daeDocument** document = NULL) {
296 return insertDocument( name, dom, document );
298 inline daeInt insertCollection(daeString name, daeDocument** document = NULL) {
299 return insertDocument( name, document );
301 inline daeInt createCollection(daeString name, daeElement* dom, daeDocument** document = NULL) {
302 return createDocument( name, dom, document );
304 inline daeInt createCollection(daeString name, daeDocument** document = NULL) {
305 return createDocument( name, document );
310 inline daeInt removeCollection(daeDocument* document) {
311 return removeDocument( document );