domAny Class Reference

#include <domAny.h>

Inheritance diagram for domAny:
Inheritance graph
[legend]

List of all members.

Public Member Functions

daeUInt getAttributeCount () const
daeString getAttributeName (daeUInt index) const
daeString getAttributeValue (daeUInt index) const
const daeElementRefArraygetContents () const
daeElementRefArraygetContents ()
virtual COLLADA_TYPE::TypeEnum getElementType () const
daeString getValue () const
virtual DLLSPEC daeBool setAttribute (daeString attrName, daeString attrValue)
void setValue (daeString val)
virtual daeInt typeID () const

Static Public Member Functions

static DLLSPEC daeElementRef create (DAE &dae)
static daeInt ID ()
static DLLSPEC daeMetaElementregisterElement (DAE &dae)

Protected Member Functions

 domAny (const domAny &cpy)
 domAny ()
virtual domAnyoperator= (const domAny &cpy)
virtual ~domAny ()

Protected Attributes

daeElementRefArray _contents
daeUIntArray _contentsOrder
daeString _value
daeTArray< daeStringattrs

Friends

class domAnyAttribute

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.

Definition at line 23 of file domAny.h.


Constructor & Destructor Documentation

domAny::domAny (  )  [inline, protected]

Constructor

Definition at line 97 of file domAny.h.

virtual domAny::~domAny (  )  [protected, virtual]

Destructor

domAny::domAny ( const domAny cpy  )  [inline, protected]

Copy Constructor

Definition at line 105 of file domAny.h.


Member Function Documentation

static DLLSPEC daeElementRef domAny::create ( DAE dae  )  [static]

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

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.

Definition at line 60 of file domAny.h.

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.

Definition at line 66 of file domAny.h.

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.

Definition at line 72 of file domAny.h.

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

Gets the _contents array.

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

Definition at line 54 of file domAny.h.

daeElementRefArray& domAny::getContents (  )  [inline]

Gets the _contents array.

Returns:
Returns a reference to the _contents element array.

Definition at line 49 of file domAny.h.

virtual COLLADA_TYPE::TypeEnum domAny::getElementType (  )  const [inline, virtual]

Gets the element type.

Returns:
Returns the COLLADA_TYPE::TypeEnum value corresponding to this element's type.

Reimplemented from daeElement.

Definition at line 88 of file domAny.h.

daeString domAny::getValue (  )  const [inline]

Gets the value of this element.

Returns:
Returns a daeString of the value.

Definition at line 77 of file domAny.h.

static daeInt domAny::ID (  )  [inline, static]

Definition at line 90 of file domAny.h.

virtual domAny& domAny::operator= ( const domAny cpy  )  [inline, protected, virtual]

Overloaded assignment operator

Definition at line 109 of file domAny.h.

static DLLSPEC daeMetaElement* domAny::registerElement ( DAE dae  )  [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.
virtual DLLSPEC 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.

Definition at line 82 of file domAny.h.

virtual daeInt domAny::typeID (  )  const [inline, virtual]

Returns this element's type ID. Every element is an instance of a type specified in the Collada schema, and every schema type has a unique ID.

Returns:
The element's type ID.

Implements daeElement.

Definition at line 91 of file domAny.h.


Friends And Related Function Documentation

friend class domAnyAttribute [friend]

Definition at line 25 of file domAny.h.


Member Data Documentation

Used to preserve order in elements that do not specify strict sequencing of sub-elements.

Definition at line 38 of file domAny.h.

Used to preserve order in elements that have a complex content model.

Definition at line 42 of file domAny.h.

The domString value of the text data of this element.

Definition at line 34 of file domAny.h.

The array of daeStrings to hold attribute data for this element.

Definition at line 30 of file domAny.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:17 2013