#include <daeIOPlugin.h>

Public Member Functions | |
| virtual daeString | getOption (daeString option) |
| virtual daeInt | read (const daeURI &uri, daeString docBuffer) |
| virtual void | setDatabase (daeDatabase *database) |
| virtual daeInt | setMeta (daeMetaElement *topMeta) |
| virtual daeInt | setOption (daeString option, daeString value) |
| virtual daeInt | write (const daeURI &name, daeDocument *document, daeBool replace) |
Definition at line 117 of file daeIOPlugin.h.
getOption retrieves the value of an option from this IOPlugin. Which options a plugin supports is dependent on the plugin itself.
| option | The option to get. |
Implements daeIOPlugin.
Definition at line 124 of file daeIOPlugin.h.
Imports content into the database from an input. The input can be a file, a database or another runtime.
| uri | the URI of the COLLADA document to load, not all plugins accept all types of URIs, check the documentation for the IO plugin you are using. | |
| docBuffer | A string containing the text of the document to load. This is an optional attribute and should only be used if the document has already been loaded into memory. |
DAE::load(). Implements daeIOPlugin.
Definition at line 121 of file daeIOPlugin.h.
| virtual void daeIOEmpty::setDatabase | ( | daeDatabase * | database | ) | [inline, virtual] |
Sets the database to use. All daeIOPlugins use the same interface to the daeDatabase, setDatabase() tells the daeIOPlugin which daeDatabase object it should use for storage and queries.
| database | Database to set. |
Implements daeIOPlugin.
Definition at line 120 of file daeIOPlugin.h.
| virtual daeInt daeIOEmpty::setMeta | ( | daeMetaElement * | topMeta | ) | [inline, virtual] |
Sets the top meta object. Called by dae::setIOPlugin() when the IO plugin changes. It passes to this function the top meta object, which is the root of a hierarchy of daeMetaElement objects. This top meta object is capable of creating any of the root objects in the DOM tree.
| topMeta | Top meta object to use to create objects to fill the database. |
Implements daeIOPlugin.
Definition at line 119 of file daeIOPlugin.h.
setOption allows you to set options for this IOPlugin. Which options a plugin supports is dependent on the plugin itself. There is currently no list of options that plugins are suggested to implement.
| option | The option to set. | |
| value | The value to set the option. |
Implements daeIOPlugin.
Definition at line 123 of file daeIOPlugin.h.
| virtual daeInt daeIOEmpty::write | ( | const daeURI & | name, | |
| daeDocument * | document, | |||
| daeBool | replace | |||
| ) | [inline, virtual] |
Writes a specific document to an output.
| name | URI to write the document to, not all IO plugins support all types of URIs check the documentation for the IO plugin you are using. | |
| document | Pointer to the document that we're going to write out. | |
| replace | True if write should overwrite an existing file. False otherwise. |
DAE::saveAs() Implements daeIOPlugin.
Definition at line 122 of file daeIOPlugin.h.