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 __domFx_code_profile_h__ 00010 #define __domFx_code_profile_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 class DAE; 00017 00022 class domFx_code_profile_complexType 00023 { 00024 protected: // Attribute 00030 xsNCName attrSid; 00031 00032 protected: // Value 00036 xsString _value; 00037 00038 public: //Accessors and Mutators 00043 xsNCName getSid() const { return attrSid; } 00048 void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid;} 00049 00054 xsString getValue() const { return _value; } 00059 void setValue( xsString val ) { *(daeStringRef*)&_value = val; } 00060 00061 protected: 00065 domFx_code_profile_complexType(DAE& dae, daeElement* elt) : attrSid(), _value() {} 00069 virtual ~domFx_code_profile_complexType() {} 00073 virtual domFx_code_profile_complexType &operator=( const domFx_code_profile_complexType &cpy ) { (void)cpy; return *this; } 00074 }; 00075 00079 class domFx_code_profile : public daeElement, public domFx_code_profile_complexType 00080 { 00081 public: 00082 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_CODE_PROFILE; } 00083 static daeInt ID() { return 96; } 00084 virtual daeInt typeID() const { return ID(); } 00085 00086 public: //Accessors and Mutators 00091 xsNCName getSid() const { return attrSid; } 00096 void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; _validAttributeArray[0] = true; } 00097 00098 protected: 00102 domFx_code_profile(DAE& dae) : daeElement(dae), domFx_code_profile_complexType(dae, this) {} 00106 virtual ~domFx_code_profile() {} 00110 virtual domFx_code_profile &operator=( const domFx_code_profile &cpy ) { (void)cpy; return *this; } 00111 00112 public: // STATIC METHODS 00117 static DLLSPEC daeElementRef create(DAE& dae); 00123 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00124 }; 00125 00126 00127 #endif