00001 #ifndef __domInput_global_h__ 00002 #define __domInput_global_h__ 00003 00004 #include <dae/daeDocument.h> 00005 #include <dom/domTypes.h> 00006 #include <dom/domElements.h> 00007 00008 class DAE; 00009 00014 class domInput_global : public daeElement 00015 { 00016 public: 00017 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INPUT_GLOBAL; } 00018 static daeInt ID() { return 0; } 00019 virtual daeInt typeID() const { return ID(); } 00020 protected: // Attributes 00025 xsNMTOKEN attrSemantic; 00030 xsAnyURI attrSource; 00031 00032 00033 public: //Accessors and Mutators 00038 xsNMTOKEN getSemantic() const { return attrSemantic; } 00043 void setSemantic( xsNMTOKEN atSemantic ) { *(daeStringRef*)&attrSemantic = atSemantic;} 00044 00049 xsAnyURI &getSource() { return attrSource; } 00054 const xsAnyURI &getSource() const { return attrSource; } 00059 void setSource( const xsAnyURI &atSource ) { attrSource = atSource; } 00064 void setSource( xsString atSource ) { attrSource = atSource; } 00065 00066 protected: 00070 domInput_global(DAE& dae) : daeElement(dae), attrSemantic(), attrSource(dae, *this) {} 00074 virtual ~domInput_global() {} 00078 virtual domInput_global &operator=( const domInput_global &cpy ) { (void)cpy; return *this; } 00079 00080 public: // STATIC METHODS 00085 static DLLSPEC daeElementRef create(DAE& dae); 00091 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00092 }; 00093 00094 00095 #endif