00001 #ifndef __domInt_array_h__ 00002 #define __domInt_array_h__ 00003 00004 #include <dae/daeDocument.h> 00005 #include <dom/domTypes.h> 00006 #include <dom/domElements.h> 00007 00008 class DAE; 00009 00014 class domInt_array : public daeElement 00015 { 00016 public: 00017 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT_ARRAY; } 00018 static daeInt ID() { return 10; } 00019 virtual daeInt typeID() const { return ID(); } 00020 protected: // Attributes 00026 xsID attrId; 00030 xsToken attrName; 00035 domUint attrCount; 00041 xsInteger attrMinInclusive; 00046 xsInteger attrMaxInclusive; 00047 00048 00049 public: //Accessors and Mutators 00054 xsID getId() const { return attrId; } 00059 void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; 00060 if( _document != NULL ) _document->changeElementID( this, attrId ); 00061 } 00062 00067 xsToken getName() const { return attrName; } 00072 void setName( xsToken atName ) { *(daeStringRef*)&attrName = atName;} 00073 00078 domUint getCount() const { return attrCount; } 00083 void setCount( domUint atCount ) { attrCount = atCount; } 00084 00089 xsInteger getMinInclusive() const { return attrMinInclusive; } 00094 void setMinInclusive( xsInteger atMinInclusive ) { attrMinInclusive = atMinInclusive; } 00095 00100 xsInteger getMaxInclusive() const { return attrMaxInclusive; } 00105 void setMaxInclusive( xsInteger atMaxInclusive ) { attrMaxInclusive = atMaxInclusive; } 00106 00111 domList_of_ints& getValue() { return _value; } 00116 void setValue( const domList_of_ints& val ) { _value = val; } 00117 00118 protected: // Value 00122 domList_of_ints _value; 00123 protected: 00127 domInt_array(DAE& dae) : daeElement(dae), attrId(), attrName(), attrCount(), attrMinInclusive(), attrMaxInclusive(), _value() {} 00131 virtual ~domInt_array() {} 00135 virtual domInt_array &operator=( const domInt_array &cpy ) { (void)cpy; return *this; } 00136 00137 public: // STATIC METHODS 00142 static DLLSPEC daeElementRef create(DAE& dae); 00148 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00149 }; 00150 00151 00152 #endif