00001 /* 00002 * Copyright 2006 Sony Computer Entertainment Inc. 00003 * 00004 * Licensed under the MIT Open Source License, for details please see license.txt or the website 00005 * http://www.opensource.org/licenses/mit-license.php 00006 * 00007 */ 00008 00009 #ifndef __domInt_array_h__ 00010 #define __domInt_array_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 class DAE; 00017 00022 class domInt_array : public daeElement 00023 { 00024 public: 00025 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT_ARRAY; } 00026 static daeInt ID() { return 608; } 00027 virtual daeInt typeID() const { return ID(); } 00028 protected: // Attributes 00034 xsID attrId; 00038 xsNCName attrName; 00043 domUint attrCount; 00049 xsInteger attrMinInclusive; 00054 xsInteger attrMaxInclusive; 00055 00056 protected: // Value 00060 domListOfInts _value; 00061 00062 public: //Accessors and Mutators 00067 xsID getId() const { return attrId; } 00072 void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; _validAttributeArray[0] = true; 00073 if( _document != NULL ) _document->changeElementID( this, attrId ); 00074 } 00075 00080 xsNCName getName() const { return attrName; } 00085 void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[1] = true; } 00086 00091 domUint getCount() const { return attrCount; } 00096 void setCount( domUint atCount ) { attrCount = atCount; _validAttributeArray[2] = true; } 00097 00102 xsInteger getMinInclusive() const { return attrMinInclusive; } 00107 void setMinInclusive( xsInteger atMinInclusive ) { attrMinInclusive = atMinInclusive; _validAttributeArray[3] = true; } 00108 00113 xsInteger getMaxInclusive() const { return attrMaxInclusive; } 00118 void setMaxInclusive( xsInteger atMaxInclusive ) { attrMaxInclusive = atMaxInclusive; _validAttributeArray[4] = true; } 00119 00124 domListOfInts &getValue() { return _value; } 00129 const domListOfInts &getValue() const { return _value; } 00134 void setValue( const domListOfInts &val ) { _value = val; } 00135 00136 protected: 00140 domInt_array(DAE& dae) : daeElement(dae), attrId(), attrName(), attrCount(), attrMinInclusive(), attrMaxInclusive(), _value() {} 00144 virtual ~domInt_array() {} 00148 virtual domInt_array &operator=( const domInt_array &cpy ) { (void)cpy; return *this; } 00149 00150 public: // STATIC METHODS 00155 static DLLSPEC daeElementRef create(DAE& dae); 00161 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00162 }; 00163 00164 00165 #endif