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 __domInputGlobal_h__ 00010 #define __domInputGlobal_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 class DAE; 00017 00022 class domInputGlobal_complexType 00023 { 00024 protected: // Attributes 00029 xsNMTOKEN attrSemantic; 00034 xsAnyURI attrSource; 00035 00036 00037 public: //Accessors and Mutators 00042 xsNMTOKEN getSemantic() const { return attrSemantic; } 00047 void setSemantic( xsNMTOKEN atSemantic ) { *(daeStringRef*)&attrSemantic = atSemantic;} 00048 00053 xsAnyURI &getSource() { return attrSource; } 00058 const xsAnyURI &getSource() const { return attrSource; } 00063 void setSource( const xsAnyURI &atSource ) { attrSource = atSource; } 00068 void setSource( xsString atSource ) { attrSource = atSource; } 00069 00070 protected: 00074 domInputGlobal_complexType(DAE& dae, daeElement* elt) : attrSemantic(), attrSource(dae, *elt) {} 00078 virtual ~domInputGlobal_complexType() {} 00082 virtual domInputGlobal_complexType &operator=( const domInputGlobal_complexType &cpy ) { (void)cpy; return *this; } 00083 }; 00084 00088 class domInputGlobal : public daeElement, public domInputGlobal_complexType 00089 { 00090 public: 00091 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INPUTGLOBAL; } 00092 static daeInt ID() { return 0; } 00093 virtual daeInt typeID() const { return ID(); } 00094 00095 public: //Accessors and Mutators 00100 xsNMTOKEN getSemantic() const { return attrSemantic; } 00105 void setSemantic( xsNMTOKEN atSemantic ) { *(daeStringRef*)&attrSemantic = atSemantic; _validAttributeArray[0] = true; } 00106 00111 xsAnyURI &getSource() { return attrSource; } 00116 const xsAnyURI &getSource() const { return attrSource; } 00121 void setSource( const xsAnyURI &atSource ) { attrSource = atSource; _validAttributeArray[1] = true; } 00126 void setSource( xsString atSource ) { attrSource = atSource; _validAttributeArray[1] = true; } 00127 00128 protected: 00132 domInputGlobal(DAE& dae) : daeElement(dae), domInputGlobal_complexType(dae, this) {} 00136 virtual ~domInputGlobal() {} 00140 virtual domInputGlobal &operator=( const domInputGlobal &cpy ) { (void)cpy; return *this; } 00141 00142 public: // STATIC METHODS 00147 static DLLSPEC daeElementRef create(DAE& dae); 00153 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00154 }; 00155 00156 00157 #endif