daeMetaGroup Class Reference

#include <daeMetaGroup.h>

Inheritance diagram for daeMetaGroup:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 daeMetaGroup (daeMetaElementAttribute *econ, 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)
 ~daeMetaGroup ()

Protected Attributes

daeMetaElementAttribute_elementContainer

Detailed Description

The daeMetaGroup class defines the behavior of an xs:group ref content model from the COLLADA Schema.

Definition at line 19 of file daeMetaGroup.h.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
econ The daeMetaElementAttribute that represents the group element in the parent.
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.
daeMetaGroup::~daeMetaGroup (  ) 

Destructor.


Member Function Documentation

daeMetaElement* daeMetaGroup::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 daeMetaGroup::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* daeMetaGroup::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 daeMetaGroup::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.


Member Data Documentation

Definition at line 46 of file daeMetaGroup.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:15 2013