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 __domInputLocal_h__ 00010 #define __domInputLocal_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 class DAE; 00017 00022 class domInputLocal_complexType 00023 { 00024 protected: // Attributes 00029 xsNMTOKEN attrSemantic; 00034 domURIFragmentType attrSource; 00035 00036 00037 public: //Accessors and Mutators 00042 xsNMTOKEN getSemantic() const { return attrSemantic; } 00047 void setSemantic( xsNMTOKEN atSemantic ) { *(daeStringRef*)&attrSemantic = atSemantic;} 00048 00053 domURIFragmentType &getSource() { return attrSource; } 00058 const domURIFragmentType &getSource() const { return attrSource; } 00063 void setSource( const domURIFragmentType &atSource ) { attrSource = atSource; } 00068 void setSource( xsString atSource ) { attrSource = atSource; } 00069 00070 protected: 00074 domInputLocal_complexType(DAE& dae, daeElement* elt) : attrSemantic(), attrSource(dae, *elt) {} 00078 virtual ~domInputLocal_complexType() {} 00082 virtual domInputLocal_complexType &operator=( const domInputLocal_complexType &cpy ) { (void)cpy; return *this; } 00083 }; 00084 00088 class domInputLocal : public daeElement, public domInputLocal_complexType 00089 { 00090 public: 00091 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INPUTLOCAL; } 00092 static daeInt ID() { return 1; } 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 domURIFragmentType &getSource() { return attrSource; } 00116 const domURIFragmentType &getSource() const { return attrSource; } 00121 void setSource( const domURIFragmentType &atSource ) { attrSource = atSource; _validAttributeArray[1] = true; } 00126 void setSource( xsString atSource ) { attrSource = atSource; _validAttributeArray[1] = true; } 00127 00128 protected: 00132 domInputLocal(DAE& dae) : daeElement(dae), domInputLocal_complexType(dae, this) {} 00136 virtual ~domInputLocal() {} 00140 virtual domInputLocal &operator=( const domInputLocal &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