00001 #ifndef __domInstance_formula_h__ 00002 #define __domInstance_formula_h__ 00003 00004 #include <dae/daeDocument.h> 00005 #include <dom/domTypes.h> 00006 #include <dom/domElements.h> 00007 00008 #include <dom/domFormula_setparam.h> 00009 class DAE; 00010 00011 class domInstance_formula : public daeElement 00012 { 00013 public: 00014 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INSTANCE_FORMULA; } 00015 static daeInt ID() { return 475; } 00016 virtual daeInt typeID() const { return ID(); } 00017 protected: // Attributes 00018 domSid attrSid; 00019 xsToken attrName; 00020 xsAnyURI attrUrl; 00021 00022 protected: // Element 00023 domFormula_setparam_Array elemSetparam_array; 00024 00025 public: //Accessors and Mutators 00030 domSid getSid() const { return attrSid; } 00035 void setSid( domSid atSid ) { *(daeStringRef*)&attrSid = atSid;} 00036 00041 xsToken getName() const { return attrName; } 00046 void setName( xsToken atName ) { *(daeStringRef*)&attrName = atName;} 00047 00052 xsAnyURI &getUrl() { return attrUrl; } 00057 const xsAnyURI &getUrl() const { return attrUrl; } 00062 void setUrl( const xsAnyURI &atUrl ) { attrUrl = atUrl; } 00067 void setUrl( xsString atUrl ) { attrUrl = atUrl; } 00068 00073 domFormula_setparam_Array &getSetparam_array() { return elemSetparam_array; } 00078 const domFormula_setparam_Array &getSetparam_array() const { return elemSetparam_array; } 00079 protected: 00083 domInstance_formula(DAE& dae) : daeElement(dae), attrSid(), attrName(), attrUrl(dae, *this), elemSetparam_array() {} 00087 virtual ~domInstance_formula() {} 00091 virtual domInstance_formula &operator=( const domInstance_formula &cpy ) { (void)cpy; return *this; } 00092 00093 public: // STATIC METHODS 00098 static DLLSPEC daeElementRef create(DAE& dae); 00104 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00105 }; 00106 00107 00108 #endif