COLLADA 1.4 DOM: daeMetaElementAttribute Class Reference

COLLADA

daeMetaElementAttribute Class Reference

#include <daeMetaAttribute.h>

Inheritance diagram for daeMetaElementAttribute:

Inheritance graph
[legend]
Collaboration diagram for daeMetaElementAttribute:

Collaboration graph
[legend]
List of all members.

Detailed Description

The daeMetaElementAttribute class represents a single attribute whose value is an element.

Public Member Functions

 daeMetaElementAttribute ()
 Constructor.
 ~daeMetaElementAttribute ()
 Destructor.
void setElementType (daeMetaElement *elementType)
 Sets the element type for the element that this attribute points to.
daeMetaElementgetElementType ()
 Gets the element type for the element that this attribute points to.
virtual daeMetaAttributeRef clone ()
 Defines the override version of base method.
virtual void placeElement (daeElement *parent, daeElement *child)
 Places element child in element parent using this element attribute.
virtual void removeElement (daeElement *parent, daeElement *child)
 Removes element child from element parent using this element attribute.
virtual void setCollection (daeElement *parent, daeCollection *c)
 Sets the database collection associated with this element.
virtual daeInt getCount (daeElement *e)
 Gets the number of elements associated with this attribute in instance e.
virtual daeMemoryRef get (daeElement *e, daeInt index)
 Gets an element from containing element e based on index.
virtual void set (daeElement *element, daeString s)
 Defines the override version of base method.
virtual void copy (daeElement *toElement, daeElement *fromElement)
 Defines the override version of base method.

Public Attributes

daeInt _minOccurs
 Minimum number of times this meta element can occur.
daeInt _maxOccurs
 Maximum number of times this meta element can occur.
daeBool _isInChoice
 If this element is found in a choice group in the schema.
daeBool _isInSequence
 If this element is found in a sequence group in the schema.
daeMetaElement_previousInSequence
 The element found before this one in the sequence group in the schema.
daeMetaElement_elementType
 The metaElement that describes the element type of this attribute.

Member Function Documentation

daeMetaAttributeRef daeMetaElementAttribute::clone  )  [virtual]
 

Defines the override version of base method.

See also:
daeMetaAttribute::clone()

Reimplemented from daeMetaAttribute.

Reimplemented in daeMetaElementArrayAttribute.

void daeMetaElementAttribute::copy daeElement toElement,
daeElement fromElement
[virtual]
 

Defines the override version of base method.

Parameters:
toElement Pointer to a daeElement to copy this attribute to.
fromElement Pointer to a daeElement to copy this attribute from.

Reimplemented from daeMetaAttribute.

Reimplemented in daeMetaElementArrayAttribute.

daeMemoryRef daeMetaElementAttribute::get daeElement e,
daeInt  index
[virtual]
 

Gets an element from containing element e based on index.

Parameters:
e Containing element from which to get the element.
index Index of the element to retrieve if indeed there is an array of elements rather than a singleton.
Returns:
Returns the associated element out of parent element e, based on index, if necessary.

Reimplemented from daeMetaAttribute.

Reimplemented in daeMetaElementArrayAttribute.

daeInt daeMetaElementAttribute::getCount daeElement e  )  [virtual]
 

Gets the number of elements associated with this attribute in instance e.

Parameters:
e Containing element to run the operation on.
Returns:
Returns the number of elements associated with this attribute in instance e.

Reimplemented from daeMetaAttribute.

Reimplemented in daeMetaElementArrayAttribute.

daeMetaElement* daeMetaElementAttribute::getElementType  )  [inline]
 

Gets the element type for the element that this attribute points to.

Returns:
Returns the daeMetaElement representing the type.

void daeMetaElementAttribute::placeElement daeElement parent,
daeElement child
[virtual]
 

Places element child in element parent using this element attribute.

Parameters:
parent The Element in which to place child.
child The Element to place in parent.

Reimplemented in daeMetaElementArrayAttribute.

void daeMetaElementAttribute::removeElement daeElement parent,
daeElement child
[virtual]
 

Removes element child from element parent using this element attribute.

Parameters:
parent The Element in which to remove child.
child The Element to remove from parent.

Reimplemented in daeMetaElementArrayAttribute.

void daeMetaElementAttribute::set daeElement element,
daeString  s
[virtual]
 

Defines the override version of base method.

Parameters:
element Element on which to set this attribute.
s String containing the value to be converted via the atomic type system.

Reimplemented from daeMetaAttribute.

void daeMetaElementAttribute::setCollection daeElement parent,
daeCollection c
[virtual]
 

Sets the database collection associated with this element.

Parameters:
parent The daeElement to set the collection.
c The daeCollection to associate with this element.

Reimplemented in daeMetaElementArrayAttribute.

void daeMetaElementAttribute::setElementType daeMetaElement elementType  )  [inline]
 

Sets the element type for the element that this attribute points to.

Parameters:
elementType daeMetaElement representing the type.


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

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