// Filename: doubleDataAttribute.h // Created by: drose (27Mar00) // //////////////////////////////////////////////////////////////////// #ifndef DOUBLEDATAATTRIBUTE_H #define DOUBLEDATAATTRIBUTE_H #include #include "numericDataAttribute.h" EXPORT_TEMPLATE_CLASS(EXPCL_PANDA, EXPTP_PANDA, NumericDataAttribute); //////////////////////////////////////////////////////////////////// // Class : DoubleDataAttribute // Description : A NumericDataAttribute templated on double types. //////////////////////////////////////////////////////////////////// class EXPCL_PANDA DoubleDataAttribute : public NumericDataAttribute { public: INLINE DoubleDataAttribute(); INLINE DoubleDataAttribute(double value); virtual NodeAttribute *make_copy() const; virtual NodeAttribute *make_initial() const; public: virtual TypeHandle get_type() const { return get_class_type(); } virtual TypeHandle force_init_type() {init_type(); return get_class_type();} static TypeHandle get_class_type() { return _type_handle; } static void init_type() { NumericDataAttribute::init_type(); register_type(_type_handle, "DoubleDataAttribute", NumericDataAttribute::get_class_type()); } private: static TypeHandle _type_handle; }; #include "doubleDataAttribute.I" // Tell GCC that we'll take care of the instantiation explicitly here. #ifdef __GNUC__ #pragma interface #endif #endif