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 __domInputLocalOffset_h__ 00010 #define __domInputLocalOffset_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 class DAE; 00017 00022 class domInputLocalOffset_complexType 00023 { 00024 protected: // Attributes 00031 domUint attrOffset; 00036 xsNMTOKEN attrSemantic; 00041 domURIFragmentType attrSource; 00046 domUint attrSet; 00047 00048 00049 public: //Accessors and Mutators 00054 domUint getOffset() const { return attrOffset; } 00059 void setOffset( domUint atOffset ) { attrOffset = atOffset; } 00060 00065 xsNMTOKEN getSemantic() const { return attrSemantic; } 00070 void setSemantic( xsNMTOKEN atSemantic ) { *(daeStringRef*)&attrSemantic = atSemantic;} 00071 00076 domURIFragmentType &getSource() { return attrSource; } 00081 const domURIFragmentType &getSource() const { return attrSource; } 00086 void setSource( const domURIFragmentType &atSource ) { attrSource = atSource; } 00091 void setSource( xsString atSource ) { attrSource = atSource; } 00092 00097 domUint getSet() const { return attrSet; } 00102 void setSet( domUint atSet ) { attrSet = atSet; } 00103 00104 protected: 00108 domInputLocalOffset_complexType(DAE& dae, daeElement* elt) : attrOffset(), attrSemantic(), attrSource(dae, *elt), attrSet() {} 00112 virtual ~domInputLocalOffset_complexType() {} 00116 virtual domInputLocalOffset_complexType &operator=( const domInputLocalOffset_complexType &cpy ) { (void)cpy; return *this; } 00117 }; 00118 00122 class domInputLocalOffset : public daeElement, public domInputLocalOffset_complexType 00123 { 00124 public: 00125 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INPUTLOCALOFFSET; } 00126 static daeInt ID() { return 2; } 00127 virtual daeInt typeID() const { return ID(); } 00128 00129 public: //Accessors and Mutators 00134 domUint getOffset() const { return attrOffset; } 00139 void setOffset( domUint atOffset ) { attrOffset = atOffset; _validAttributeArray[0] = true; } 00140 00145 xsNMTOKEN getSemantic() const { return attrSemantic; } 00150 void setSemantic( xsNMTOKEN atSemantic ) { *(daeStringRef*)&attrSemantic = atSemantic; _validAttributeArray[1] = true; } 00151 00156 domURIFragmentType &getSource() { return attrSource; } 00161 const domURIFragmentType &getSource() const { return attrSource; } 00166 void setSource( const domURIFragmentType &atSource ) { attrSource = atSource; _validAttributeArray[2] = true; } 00171 void setSource( xsString atSource ) { attrSource = atSource; _validAttributeArray[2] = true; } 00172 00177 domUint getSet() const { return attrSet; } 00182 void setSet( domUint atSet ) { attrSet = atSet; _validAttributeArray[3] = true; } 00183 00184 protected: 00188 domInputLocalOffset(DAE& dae) : daeElement(dae), domInputLocalOffset_complexType(dae, this) {} 00192 virtual ~domInputLocalOffset() {} 00196 virtual domInputLocalOffset &operator=( const domInputLocalOffset &cpy ) { (void)cpy; return *this; } 00197 00198 public: // STATIC METHODS 00203 static DLLSPEC daeElementRef create(DAE& dae); 00209 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00210 }; 00211 00212 00213 #endif