daeMetaSequence.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright 2006 Sony Computer Entertainment Inc.
  3. *
  4. * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
  5. * file except in compliance with the License. You may obtain a copy of the License at:
  6. * http://research.scea.com/scea_shared_source_license.html
  7. *
  8. * Unless required by applicable law or agreed to in writing, software distributed under the License
  9. * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  10. * implied. See the License for the specific language governing permissions and limitations under the
  11. * License.
  12. */
  13. #ifndef __DAE_META_SEQUENCE_H__
  14. #define __DAE_META_SEQUENCE_H__
  15. #include <dae/daeMetaCMPolicy.h>
  16. /**
  17. * The daeMetaSequence class defines the behavior of an xs:sequence content model in the COLLADA Schema.
  18. */
  19. class daeMetaSequence : public daeMetaCMPolicy
  20. {
  21. public:
  22. /**
  23. * Constructor.
  24. * @param container The daeMetaElement that this policy object belongs to.
  25. * @param parent The daeMetaCMPolicy parent of this policy object.
  26. * @param odinal The ordinal value offset of this specific policy object. Used for maintaining the
  27. * correct order of child elements.
  28. * @param minO The minimum number of times this CMPolicy object must appear. This value comes from the COLLADA schema.
  29. * @param maxO The maximum number of times this CMPolicy object may appear. This value comes from the COLLADA schema.
  30. */
  31. daeMetaSequence( daeMetaElement *container, daeMetaCMPolicy *parent = NULL, daeUInt ordinal = 0, daeInt minO = 1, daeInt maxO = 1 );
  32. /**
  33. * Destructor.
  34. */
  35. ~daeMetaSequence();
  36. daeElement *placeElement( daeElement *parent, daeElement *child, daeUInt &ordinal, daeInt offset = 0, daeElement* before = NULL, daeElement *after = NULL );
  37. daeBool removeElement(daeElement* parent, daeElement* child);
  38. daeMetaElement *findChild( daeString elementName );
  39. void getChildren( daeElement* parent, daeElementRefArray &array );
  40. };
  41. #endif