COLLADA 1.4 DOM: domAny Class Reference

COLLADA

domAny Class Reference

#include <domAny.h>

Inheritance diagram for domAny:

Inheritance graph
[legend]
Collaboration diagram for domAny:

Collaboration graph
[legend]
List of all members.

Detailed Description

The domAny class allows for weakly typed xml elements.

This class is used anywhere in the COLLADA schema where an xs:any element appears. The content and type information for a domAny object is generated at runtime.

Public Member Functions

daeElementRefArraygetContents ()
 Gets the _contents array.
const daeElementRefArraygetContents () const
 Gets the _contents array.
daeUInt getAttributeCount () const
 Gets the number of attributes this element has.
daeString getAttributeName (daeUInt index) const
 Gets an attribute's name.
daeString getAttributeValue (daeUInt index) const
 Gets an attribute's value.
daeString getValue () const
 Gets the value of this element.
void setValue (daeString val)
 Sets the _value of this element.
virtual daeBool setAttribute (daeString attrName, daeString attrValue)
 Override of the Base class method.

Static Public Member Functions

static daeElementRef create (daeInt bytes)
 Creates an instance of this class and returns a daeElementRef referencing it.
static daeMetaElementregisterElement ()
 Creates a daeMetaElement object that describes this element in the meta object reflection framework.

Protected Member Functions

 domAny ()
 Constructor.
virtual ~domAny ()
 Destructor.
 domAny (const domAny &cpy)
 Copy Constructor.
virtual domAnyoperator= (const domAny &cpy)
 Overloaded assignment operator.

Protected Attributes

daeString attrs [MAX_ATTRIBUTES]
 The array of daeStrings to hold attribute data for this element.
daeString _value
 The domString value of the text data of this element.
daeElementRefArray _contents
 Used to preserve order in elements that do not specify strict sequencing of sub-elements.

Member Function Documentation

daeElementRef domAny::create daeInt  bytes  )  [static]
 

Creates an instance of this class and returns a daeElementRef referencing it.

Parameters:
bytes The size allocated for this instance.
Returns:
a daeElementRef referencing an instance of this object.

daeUInt domAny::getAttributeCount  )  const [inline]
 

Gets the number of attributes this element has.

Returns:
Returns the number of attributes on this element.

daeString domAny::getAttributeName daeUInt  index  )  const [inline]
 

Gets an attribute's name.

Parameters:
index The index into the attribute list.
Returns:
Returns the attribute's name.

daeString domAny::getAttributeValue daeUInt  index  )  const [inline]
 

Gets an attribute's value.

Parameters:
index The index into the attribute list.
Returns:
Returns the attribute's value as a string.

const daeElementRefArray& domAny::getContents  )  const [inline]
 

Gets the _contents array.

Returns:
Returns a constant reference to the _contents element array.

daeElementRefArray& domAny::getContents  )  [inline]
 

Gets the _contents array.

Returns:
Returns a reference to the _contents element array.

daeString domAny::getValue  )  const [inline]
 

Gets the value of this element.

Returns:
Returns a daeString of the value.

daeMetaElement * domAny::registerElement  )  [static]
 

Creates a daeMetaElement object that describes this element in the meta object reflection framework.

Returns:
A daeMetaElement describing this COLLADA element.
Remarks:
Unlike other dom* elements, domAny will always create a new daeMetaElement when this function is called.

daeBool domAny::setAttribute daeString  attrName,
daeString  attrValue
[virtual]
 

Override of the Base class method.

Creates and registers an attribute field with its meta and assigns its value as the attrValue String.

Parameters:
attrName Attribute to set.
attrValue String-based value to apply to the attribute.
Returns:
Returns true if the attribute was created and the value was set, false otherwise.

Reimplemented from daeElement.

void domAny::setValue daeString  val  )  [inline]
 

Sets the _value of this element.

Parameters:
val The new value for this element.


The documentation for this class was generated from the following files:
  • C:/SVN_wf/COLLADA_DOM/include/dae/domAny.h
  • C:/SVN_wf/COLLADA_DOM/src/dae/domAny.cpp

©2005 Sony Computer Entertainment Inc.. All Rights Reserved.
Generated on Fri Feb 10 16:47:11 2006 for COLLADA 1.4 DOM by doxygen 1.4.3