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 __domTargetableFloat_h__ 00010 #define __domTargetableFloat_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 class DAE; 00017 00022 class domTargetableFloat_complexType 00023 { 00024 protected: // Attribute 00030 xsNCName attrSid; 00031 00032 protected: // Value 00036 domFloat _value; 00037 00038 public: //Accessors and Mutators 00043 xsNCName getSid() const { return attrSid; } 00048 void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid;} 00049 00054 domFloat getValue() const { return _value; } 00059 void setValue( domFloat val ) { _value = val; } 00060 00061 protected: 00065 domTargetableFloat_complexType(DAE& dae, daeElement* elt) : attrSid(), _value() {} 00069 virtual ~domTargetableFloat_complexType() {} 00073 virtual domTargetableFloat_complexType &operator=( const domTargetableFloat_complexType &cpy ) { (void)cpy; return *this; } 00074 }; 00075 00079 class domTargetableFloat : public daeElement, public domTargetableFloat_complexType 00080 { 00081 public: 00082 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TARGETABLEFLOAT; } 00083 static daeInt ID() { return 4; } 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 domTargetableFloat(DAE& dae) : daeElement(dae), domTargetableFloat_complexType(dae, this) {} 00106 virtual ~domTargetableFloat() {} 00110 virtual domTargetableFloat &operator=( const domTargetableFloat &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