daeMetaSequence Class Reference

#include <daeMetaSequence.h>

Inheritance diagram for daeMetaSequence:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 daeMetaSequence (daeMetaElement *container, daeMetaCMPolicy *parent=NULL, daeUInt ordinal=0, daeInt minO=1, daeInt maxO=1)
daeMetaElementfindChild (daeString elementName)
void getChildren (daeElement *parent, daeElementRefArray &array)
daeElementplaceElement (daeElement *parent, daeElement *child, daeUInt &ordinal, daeInt offset=0, daeElement *before=NULL, daeElement *after=NULL)
daeBool removeElement (daeElement *parent, daeElement *child)
 ~daeMetaSequence ()

Detailed Description

The daeMetaSequence class defines the behavior of an xs:sequence content model in the COLLADA Schema.

Definition at line 17 of file daeMetaSequence.h.


Constructor & Destructor Documentation

daeMetaSequence::daeMetaSequence ( daeMetaElement container,
daeMetaCMPolicy parent = NULL,
daeUInt  ordinal = 0,
daeInt  minO = 1,
daeInt  maxO = 1 
)

Constructor.

Parameters:
container The daeMetaElement that this policy object belongs to.
parent The daeMetaCMPolicy parent of this policy object.
odinal The ordinal value offset of this specific policy object. Used for maintaining the correct order of child elements.
minO The minimum number of times this CMPolicy object must appear. This value comes from the COLLADA schema.
maxO The maximum number of times this CMPolicy object may appear. This value comes from the COLLADA schema.
daeMetaSequence::~daeMetaSequence (  ) 

Destructor.


Member Function Documentation

daeMetaElement* daeMetaSequence::findChild ( daeString  elementName  )  [virtual]

Gets the daeMetaElement of an acceptable child of this content model object.

Parameters:
elementName The name of the element whos metaElement information you are interested in.
Returns:
Returns a pointer to a daeMetaElement class that describes the element interested in. Returns NULL if the element is not valid in this content model.

Implements daeMetaCMPolicy.

void daeMetaSequence::getChildren ( daeElement parent,
daeElementRefArray array 
) [virtual]

Populates an array with the children of parent based on this content model object.

Parameters:
parent The parent element whos children you want.
array The array where you the children will be appended to.

Implements daeMetaCMPolicy.

daeElement* daeMetaSequence::placeElement ( daeElement parent,
daeElement child,
daeUInt ordinal,
daeInt  offset = 0,
daeElement before = NULL,
daeElement after = NULL 
) [virtual]

Places an element into the parent element based on this content model policy object.

Parameters:
parent The parent element for which the child element will be placed.
child The new child element.
ordinal A reference to a daeUInt which holds the ordinal return value for a placed child. Used to maintain proper ording of child elements.
offset The offset to used when attempting to place this element. Affects comparison against minOccurs and maxOccurs.
before The element that the child should appear before. Optional.
after The element that the child should appear after. Optional.
Returns:
Returns The child element that was placed within this content model object or any of its children. NULL if placement failed.

Implements daeMetaCMPolicy.

daeBool daeMetaSequence::removeElement ( daeElement parent,
daeElement child 
) [virtual]

Removes an element from the parent based on this content model object.

Parameters:
parent The parent element for which child you want to remove.
child The child that will be removed from the parent.
Returns:
Returns true if the child was successfully removed from this content model object or any of its children. False otherwise.

Implements daeMetaCMPolicy.


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:15 2013