daeMetaAny.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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_ANY_H__
  9. #define __DAE_META_ANY_H__
  10. #include <dae/daeMetaCMPolicy.h>
  11. /**
  12. * The daeMetaAny class defines the behavior of an xs:any content model in the COLLADA Schema.
  13. */
  14. class daeMetaAny : 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. daeMetaAny( daeMetaElement *container, daeMetaCMPolicy *parent = NULL, daeUInt ordinal = 0, daeInt minO = 1, daeInt maxO = 1 );
  27. ~daeMetaAny();
  28. daeElement *placeElement( daeElement *parent, daeElement *child, daeUInt &ordinal, daeInt offset = 0, daeElement* before = NULL, daeElement *after = NULL );
  29. daeBool removeElement(daeElement* parent, daeElement* child);
  30. daeMetaElement *findChild( daeString elementName );
  31. void getChildren( daeElement* parent, daeElementRefArray &array );
  32. };
  33. #endif