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 __domInstance_light_h__ 00010 #define __domInstance_light_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 #include <dom/domInstanceWithExtra.h> 00017 class DAE; 00018 00023 class domInstance_light : public daeElement, public domInstanceWithExtra_complexType 00024 { 00025 public: 00026 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INSTANCE_LIGHT; } 00027 static daeInt ID() { return 696; } 00028 virtual daeInt typeID() const { return ID(); } 00029 00034 xsAnyURI &getUrl() { return attrUrl; } 00039 const xsAnyURI &getUrl() const { return attrUrl; } 00044 void setUrl( const xsAnyURI &atUrl ) { attrUrl = atUrl; _validAttributeArray[0] = true; } 00049 void setUrl( xsString atUrl ) { attrUrl = atUrl; _validAttributeArray[0] = true; } 00050 00055 xsNCName getSid() const { return attrSid; } 00060 void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; _validAttributeArray[1] = true; } 00061 00066 xsNCName getName() const { return attrName; } 00071 void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[2] = true; } 00072 00073 protected: 00077 domInstance_light(DAE& dae) : daeElement(dae), domInstanceWithExtra_complexType(dae, this) {} 00081 virtual ~domInstance_light() {} 00085 virtual domInstance_light &operator=( const domInstance_light &cpy ) { (void)cpy; return *this; } 00086 00087 public: // STATIC METHODS 00092 static DLLSPEC daeElementRef create(DAE& dae); 00098 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00099 }; 00100 00101 00102 #endif