daeTinyXMLPlugin Class Reference

#include <daeTinyXMLPlugin.h>

Inheritance diagram for daeTinyXMLPlugin:
Inheritance graph
[legend]

List of all members.

Public Member Functions

DLLSPEC daeTinyXMLPlugin ()
virtual DLLSPEC daeString getOption (daeString option)
virtual DLLSPEC daeInt setOption (daeString option, daeString value)
virtual DLLSPEC daeInt write (const daeURI &name, daeDocument *document, daeBool replace)
virtual DLLSPEC ~daeTinyXMLPlugin ()

Private Member Functions

daeElementRef readElement (TiXmlElement *tinyXmlElement, daeElement *parentElement)
virtual daeElementRef readFromFile (const daeURI &uri)
virtual daeElementRef readFromMemory (daeString buffer, const daeURI &baseUri)
void writeAttribute (daeMetaAttribute *attr, daeElement *element)
void writeElement (daeElement *element)
void writeValue (daeElement *element)

Private Attributes

TiXmlDocument * m_doc
std::list< TiXmlElement * > m_elements

Detailed Description

Definition at line 21 of file daeTinyXMLPlugin.h.


Constructor & Destructor Documentation

DLLSPEC daeTinyXMLPlugin::daeTinyXMLPlugin (  ) 

Constructor.

virtual DLLSPEC daeTinyXMLPlugin::~daeTinyXMLPlugin (  )  [virtual]

Destructor.


Member Function Documentation

virtual DLLSPEC daeString daeTinyXMLPlugin::getOption ( daeString  option  )  [virtual]

getOption retrieves the value of an option from this IOPlugin. Which options a plugin supports is dependent on the plugin itself.

Parameters:
option The option to get.
Returns:
Returns the string value of the option or NULL if option is not valid.

Implements daeIOPlugin.

daeElementRef daeTinyXMLPlugin::readElement ( TiXmlElement *  tinyXmlElement,
daeElement parentElement 
) [private]
virtual daeElementRef daeTinyXMLPlugin::readFromFile ( const daeURI uri  )  [private, virtual]

Implements daeIOPluginCommon.

virtual daeElementRef daeTinyXMLPlugin::readFromMemory ( daeString  buffer,
const daeURI baseUri 
) [private, virtual]

Implements daeIOPluginCommon.

virtual DLLSPEC daeInt daeTinyXMLPlugin::setOption ( daeString  option,
daeString  value 
) [virtual]

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. daeLibXML2Plugin supports only one option, "saveRawBinary". Set to "true" to save float_array data as a .raw binary file. The daeRawResolver will convert the data back into COLLADA domFloat_array elements upon load.

Parameters:
option The option to set.
value The value to set the option.
Returns:
Returns DAE_OK upon success.

Implements daeIOPlugin.

virtual DLLSPEC daeInt daeTinyXMLPlugin::write ( const daeURI name,
daeDocument document,
daeBool  replace 
) [virtual]

Writes a specific document to an output.

Parameters:
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.
Returns:
Returns DAE_OK if success, a negative value defined in daeError.h otherwise.
See also:
DAE::saveAs()

Implements daeIOPlugin.

void daeTinyXMLPlugin::writeAttribute ( daeMetaAttribute attr,
daeElement element 
) [private]
void daeTinyXMLPlugin::writeElement ( daeElement element  )  [private]
void daeTinyXMLPlugin::writeValue ( daeElement element  )  [private]

Member Data Documentation

TiXmlDocument* daeTinyXMLPlugin::m_doc [private]

Definition at line 58 of file daeTinyXMLPlugin.h.

std::list<TiXmlElement*> daeTinyXMLPlugin::m_elements [private]

Definition at line 59 of file daeTinyXMLPlugin.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


colladadom
Author(s): Du Hung Hou, Khronos.org, Marcus Barnes, Greg Corson, Herbert Law, Sebastian Schwarz, Steven Thomas, John Hsu (ros package), Tim Field (ros package)
autogenerated on Fri Jan 11 09:29:16 2013