00001 #ifndef __domCg_user_h__ 00002 #define __domCg_user_h__ 00003 00004 #include <dae/daeDocument.h> 00005 #include <dom/domTypes.h> 00006 #include <dom/domElements.h> 00007 00008 #include <dom/domCg_setparam.h> 00009 class DAE; 00010 00014 class domCg_user : public daeElement 00015 { 00016 public: 00017 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_USER; } 00018 static daeInt ID() { return 245; } 00019 virtual daeInt typeID() const { return ID(); } 00020 protected: // Attributes 00021 xsToken attrTypename; 00025 xsNCName attrSource; 00026 00027 protected: // Element 00032 domCg_setparam_Array elemSetparam_array; 00033 00034 public: //Accessors and Mutators 00039 xsToken getTypename() const { return attrTypename; } 00044 void setTypename( xsToken atTypename ) { *(daeStringRef*)&attrTypename = atTypename;} 00045 00050 xsNCName getSource() const { return attrSource; } 00055 void setSource( xsNCName atSource ) { *(daeStringRef*)&attrSource = atSource;} 00056 00061 domCg_setparam_Array &getSetparam_array() { return elemSetparam_array; } 00066 const domCg_setparam_Array &getSetparam_array() const { return elemSetparam_array; } 00067 protected: 00071 domCg_user(DAE& dae) : daeElement(dae), attrTypename(), attrSource(), elemSetparam_array() {} 00075 virtual ~domCg_user() {} 00079 virtual domCg_user &operator=( const domCg_user &cpy ) { (void)cpy; return *this; } 00080 00081 public: // STATIC METHODS 00086 static DLLSPEC daeElementRef create(DAE& dae); 00092 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00093 }; 00094 00095 00096 #endif