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_annotate_common_h__ 00010 #define __domFx_annotate_common_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 #include <dom/domFx_annotate_type_common.h> 00017 class DAE; 00018 00019 class domFx_annotate_common_complexType 00020 { 00021 protected: // Attribute 00022 xsNCName attrName; 00023 00024 protected: // Element 00025 domFx_annotate_type_commonRef elemFx_annotate_type_common; 00026 00027 public: //Accessors and Mutators 00032 xsNCName getName() const { return attrName; } 00037 void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName;} 00038 00043 const domFx_annotate_type_commonRef getFx_annotate_type_common() const { return elemFx_annotate_type_common; } 00044 protected: 00048 domFx_annotate_common_complexType(DAE& dae, daeElement* elt) : attrName(), elemFx_annotate_type_common() {} 00052 virtual ~domFx_annotate_common_complexType() {} 00056 virtual domFx_annotate_common_complexType &operator=( const domFx_annotate_common_complexType &cpy ) { (void)cpy; return *this; } 00057 }; 00058 00062 class domFx_annotate_common : public daeElement, public domFx_annotate_common_complexType 00063 { 00064 public: 00065 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_ANNOTATE_COMMON; } 00066 static daeInt ID() { return 91; } 00067 virtual daeInt typeID() const { return ID(); } 00068 00069 public: //Accessors and Mutators 00074 xsNCName getName() const { return attrName; } 00079 void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[0] = true; } 00080 00081 protected: 00085 domFx_annotate_common(DAE& dae) : daeElement(dae), domFx_annotate_common_complexType(dae, this) {} 00089 virtual ~domFx_annotate_common() {} 00093 virtual domFx_annotate_common &operator=( const domFx_annotate_common &cpy ) { (void)cpy; return *this; } 00094 00095 public: // STATIC METHODS 00100 static DLLSPEC daeElementRef create(DAE& dae); 00106 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00107 }; 00108 00109 00110 #endif