00001 #ifndef __domTargetable_float_h__ 00002 #define __domTargetable_float_h__ 00003 00004 #include <dae/daeDocument.h> 00005 #include <dom/domTypes.h> 00006 #include <dom/domElements.h> 00007 00008 class DAE; 00009 00014 class domTargetable_float : public daeElement 00015 { 00016 public: 00017 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TARGETABLE_FLOAT; } 00018 static daeInt ID() { return 3; } 00019 virtual daeInt typeID() const { return ID(); } 00020 protected: // Attribute 00026 domSid attrSid; 00027 00028 00029 public: //Accessors and Mutators 00034 domSid getSid() const { return attrSid; } 00039 void setSid( domSid atSid ) { *(daeStringRef*)&attrSid = atSid;} 00040 00045 domFloat& getValue() { return _value; } 00050 void setValue( const domFloat& val ) { _value = val; } 00051 00052 protected: // Value 00056 domFloat _value; 00057 protected: 00061 domTargetable_float(DAE& dae) : daeElement(dae), attrSid(), _value() {} 00065 virtual ~domTargetable_float() {} 00069 virtual domTargetable_float &operator=( const domTargetable_float &cpy ) { (void)cpy; return *this; } 00070 00071 public: // STATIC METHODS 00076 static DLLSPEC daeElementRef create(DAE& dae); 00082 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00083 }; 00084 00085 00086 #endif