00001 #ifndef __domBool_array_h__ 00002 #define __domBool_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 domBool_array : public daeElement 00015 { 00016 public: 00017 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL_ARRAY; } 00018 static daeInt ID() { return 8; } 00019 virtual daeInt typeID() const { return ID(); } 00020 protected: // Attributes 00026 xsID attrId; 00030 xsToken attrName; 00035 domUint attrCount; 00036 00037 00038 public: //Accessors and Mutators 00043 xsID getId() const { return attrId; } 00048 void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; 00049 if( _document != NULL ) _document->changeElementID( this, attrId ); 00050 } 00051 00056 xsToken getName() const { return attrName; } 00061 void setName( xsToken atName ) { *(daeStringRef*)&attrName = atName;} 00062 00067 domUint getCount() const { return attrCount; } 00072 void setCount( domUint atCount ) { attrCount = atCount; } 00073 00078 domList_of_bools& getValue() { return _value; } 00083 void setValue( const domList_of_bools& val ) { _value = val; } 00084 00085 protected: // Value 00089 domList_of_bools _value; 00090 protected: 00094 domBool_array(DAE& dae) : daeElement(dae), attrId(), attrName(), attrCount(), _value() {} 00098 virtual ~domBool_array() {} 00102 virtual domBool_array &operator=( const domBool_array &cpy ) { (void)cpy; return *this; } 00103 00104 public: // STATIC METHODS 00109 static DLLSPEC daeElementRef create(DAE& dae); 00115 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00116 }; 00117 00118 00119 #endif