daeMetaGroup.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * Copyright 2006 Sony Computer Entertainment Inc.
  3. *
  4. * Licensed under the MIT Open Source License, for details please see license.txt or the website
  5. * http://www.opensource.org/licenses/mit-license.php
  6. *
  7. */
  8. #ifndef __DAE_META_GROUP_H__
  9. #define __DAE_META_GROUP_H__
  10. #include <dae/daeMetaCMPolicy.h>
  11. class daeMetaElementAttribute;
  12. /**
  13. * The daeMetaGroup class defines the behavior of an xs:group ref content model from the COLLADA Schema.
  14. */
  15. class daeMetaGroup : public daeMetaCMPolicy
  16. {
  17. public:
  18. /**
  19. * Constructor.
  20. * @param econ The daeMetaElementAttribute that represents the group element in the parent.
  21. * @param container The daeMetaElement that this policy object belongs to.
  22. * @param parent The daeMetaCMPolicy parent of this policy object.
  23. * @param odinal The ordinal value offset of this specific policy object. Used for maintaining the
  24. * correct order of child elements.
  25. * @param minO The minimum number of times this CMPolicy object must appear. This value comes from the COLLADA schema.
  26. * @param maxO The maximum number of times this CMPolicy object may appear. This value comes from the COLLADA schema.
  27. */
  28. daeMetaGroup( daeMetaElementAttribute *econ, daeMetaElement *container, daeMetaCMPolicy *parent = NULL,
  29. daeUInt ordinal = 0, daeInt minO = 1, daeInt maxO = 1 );
  30. /**
  31. * Destructor.
  32. */
  33. ~daeMetaGroup();
  34. daeElement *placeElement( daeElement *parent, daeElement *child, daeUInt &ordinal, daeInt offset = 0, daeElement* before = NULL, daeElement *after = NULL );
  35. daeBool removeElement(daeElement* parent, daeElement* child);
  36. daeMetaElement *findChild( daeString elementName );
  37. void getChildren( daeElement* parent, daeElementRefArray &array );
  38. protected:
  39. daeMetaElementAttribute *_elementContainer;
  40. };
  41. #endif