TuttleOFX  1
TuttleOFX/libraries/tuttle/src/tuttle/host/ofx/attribute/OfxhParamPushButton.hpp
Go to the documentation of this file.
00001 #ifndef _TUTTLE_HOST_OFX_PARAM_PARAMPUSHBUTTON_HPP_
00002 #define _TUTTLE_HOST_OFX_PARAM_PARAMPUSHBUTTON_HPP_
00003 
00004 #include "OfxhParam.hpp"
00005 #include "OfxhParamDescriptor.hpp"
00006 #include "OfxhParamSet.hpp"
00007 #include "OfxhKeyframeParam.hpp"
00008 
00009 namespace tuttle {
00010 namespace host {
00011 namespace ofx {
00012 namespace attribute {
00013 
00014 class OfxhParamPushButton
00015         : public OfxhParam
00016         , public OfxhKeyframeParam
00017 {
00018 public:
00019         OfxhParamPushButton( const OfxhParamDescriptor& descriptor, const std::string& name, OfxhParamSet& setInstance ) : OfxhParam( descriptor, name, setInstance ) {}
00020 
00021         // Pushbutton params don't have values; just ignore set/get
00022         virtual void getValue( double& ) const OFX_EXCEPTION_SPEC {};
00023         virtual void getValueAtTime( const OfxTime time, double& ) const OFX_EXCEPTION_SPEC {};
00024         virtual void setValue( const double&, const EChange change ) OFX_EXCEPTION_SPEC {};
00025         virtual void setValueAtTime( const OfxTime time, const double&, const EChange change ) OFX_EXCEPTION_SPEC {};
00026         virtual void setValue( const int& v, const EChange change ) OFX_EXCEPTION_SPEC {};
00027         virtual void setValueAtTime( const OfxTime time, const int& v, const EChange change ) OFX_EXCEPTION_SPEC {};
00028         virtual void setValueFromExpression( const std::string& value, const EChange change ) OFX_EXCEPTION_SPEC { }
00029         inline void setValueFromExpression( const std::string& value ) OFX_EXCEPTION_SPEC { setValueFromExpression( value, eChangeUserEdited ); }
00030 
00031         bool paramTypeHasData() const { return false; }
00032 
00033         std::size_t getHashAtTime( const OfxTime time ) const { return 0; }
00034 };
00035 
00036 }
00037 }
00038 }
00039 }
00040 
00041 #endif
00042