daeMetaSequence.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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_SEQUENCE_H__
  9. #define __DAE_META_SEQUENCE_H__
  10. #include <dae/daeMetaCMPolicy.h>
  11. /**
  12. * The daeMetaSequence class defines the behavior of an xs:sequence content model in the COLLADA Schema.
  13. */
  14. class daeMetaSequence : public daeMetaCMPolicy
  15. {
  16. public:
  17. /**
  18. * Constructor.
  19. * @param container The daeMetaElement that this policy object belongs to.
  20. * @param parent The daeMetaCMPolicy parent of this policy object.
  21. * @param odinal The ordinal value offset of this specific policy object. Used for maintaining the
  22. * correct order of child elements.
  23. * @param minO The minimum number of times this CMPolicy object must appear. This value comes from the COLLADA schema.
  24. * @param maxO The maximum number of times this CMPolicy object may appear. This value comes from the COLLADA schema.
  25. */
  26. daeMetaSequence( daeMetaElement *container, daeMetaCMPolicy *parent = NULL, daeUInt ordinal = 0, daeInt minO = 1, daeInt maxO = 1 );
  27. /**
  28. * Destructor.
  29. */
  30. ~daeMetaSequence();
  31. daeElement *placeElement( daeElement *parent, daeElement *child, daeUInt &ordinal, daeInt offset = 0, daeElement* before = NULL, daeElement *after = NULL );
  32. daeBool removeElement(daeElement* parent, daeElement* child);
  33. daeMetaElement *findChild( daeString elementName );
  34. void getChildren( daeElement* parent, daeElementRefArray &array );
  35. };
  36. #endif