00001 #ifndef __domProfile_bridge_h__ 00002 #define __domProfile_bridge_h__ 00003 00004 #include <dae/daeDocument.h> 00005 #include <dom/domTypes.h> 00006 #include <dom/domElements.h> 00007 00008 #include <dom/domAsset.h> 00009 #include <dom/domExtra.h> 00010 class DAE; 00011 00016 class domProfile_bridge : public daeElement 00017 { 00018 public: 00019 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PROFILE_BRIDGE; } 00020 static daeInt ID() { return 209; } 00021 virtual daeInt typeID() const { return ID(); } 00022 protected: // Attributes 00023 xsID attrId; 00028 xsNCName attrPlatform; 00032 xsAnyURI attrUrl; 00033 00034 protected: // Elements 00035 domAssetRef elemAsset; 00036 domExtra_Array elemExtra_array; 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 xsNCName getPlatform() const { return attrPlatform; } 00061 void setPlatform( xsNCName atPlatform ) { *(daeStringRef*)&attrPlatform = atPlatform;} 00062 00067 xsAnyURI &getUrl() { return attrUrl; } 00072 const xsAnyURI &getUrl() const { return attrUrl; } 00077 void setUrl( const xsAnyURI &atUrl ) { attrUrl = atUrl; } 00082 void setUrl( xsString atUrl ) { attrUrl = atUrl; } 00083 00088 const domAssetRef getAsset() const { return elemAsset; } 00093 domExtra_Array &getExtra_array() { return elemExtra_array; } 00098 const domExtra_Array &getExtra_array() const { return elemExtra_array; } 00099 protected: 00103 domProfile_bridge(DAE& dae) : daeElement(dae), attrId(), attrPlatform(), attrUrl(dae, *this), elemAsset(), elemExtra_array() {} 00107 virtual ~domProfile_bridge() {} 00111 virtual domProfile_bridge &operator=( const domProfile_bridge &cpy ) { (void)cpy; return *this; } 00112 00113 public: // STATIC METHODS 00118 static DLLSPEC daeElementRef create(DAE& dae); 00124 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00125 }; 00126 00127 00128 #endif