00001 #ifndef __domParam_h__ 00002 #define __domParam_h__ 00003 00004 #include <dae/daeDocument.h> 00005 #include <dom/domTypes.h> 00006 #include <dom/domElements.h> 00007 00008 class DAE; 00009 00014 class domParam : public daeElement 00015 { 00016 public: 00017 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PARAM; } 00018 static daeInt ID() { return 11; } 00019 virtual daeInt typeID() const { return ID(); } 00020 protected: // Attributes 00024 xsToken attrName; 00030 domSid attrSid; 00035 xsNMTOKEN attrSemantic; 00040 xsNMTOKEN attrType; 00041 00042 00043 public: //Accessors and Mutators 00048 xsToken getName() const { return attrName; } 00053 void setName( xsToken atName ) { *(daeStringRef*)&attrName = atName;} 00054 00059 domSid getSid() const { return attrSid; } 00064 void setSid( domSid atSid ) { *(daeStringRef*)&attrSid = atSid;} 00065 00070 xsNMTOKEN getSemantic() const { return attrSemantic; } 00075 void setSemantic( xsNMTOKEN atSemantic ) { *(daeStringRef*)&attrSemantic = atSemantic;} 00076 00081 xsNMTOKEN getType() const { return attrType; } 00086 void setType( xsNMTOKEN atType ) { *(daeStringRef*)&attrType = atType;} 00087 00092 xsString getValue() const { return _value; } 00097 void setValue( xsString val ) { *(daeStringRef*)&_value = val; } 00098 00099 protected: // Value 00103 xsString _value; 00104 protected: 00108 domParam(DAE& dae) : daeElement(dae), attrName(), attrSid(), attrSemantic(), attrType(), _value() {} 00112 virtual ~domParam() {} 00116 virtual domParam &operator=( const domParam &cpy ) { (void)cpy; return *this; } 00117 00118 public: // STATIC METHODS 00123 static DLLSPEC daeElementRef create(DAE& dae); 00129 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00130 }; 00131 00132 00133 #endif