TuttleOFX
1
|
00001 #include "OfxhParamDouble.hpp" 00002 00003 namespace tuttle { 00004 namespace host { 00005 namespace ofx { 00006 namespace attribute { 00007 00008 /** 00009 * implementation of var args function 00010 */ 00011 void OfxhParamDouble::getV( va_list arg ) const OFX_EXCEPTION_SPEC 00012 { 00013 double* value = va_arg( arg, double* ); 00014 00015 getValue( *value ); 00016 } 00017 00018 /** 00019 * implementation of var args function 00020 */ 00021 void OfxhParamDouble::getV( const OfxTime time, va_list arg ) const OFX_EXCEPTION_SPEC 00022 { 00023 double* value = va_arg( arg, double* ); 00024 00025 getValueAtTime( time, *value ); 00026 } 00027 00028 /** 00029 * implementation of var args function 00030 */ 00031 void OfxhParamDouble::setV( va_list arg, const EChange change ) OFX_EXCEPTION_SPEC 00032 { 00033 double value = va_arg( arg, double ); 00034 00035 setValue( value, change ); 00036 } 00037 00038 /** 00039 * implementation of var args function 00040 */ 00041 void OfxhParamDouble::setV( const OfxTime time, va_list arg, const EChange change ) OFX_EXCEPTION_SPEC 00042 { 00043 double value = va_arg( arg, double ); 00044 00045 setValueAtTime( time, value, change ); 00046 } 00047 00048 /** 00049 * implementation of var args function 00050 */ 00051 void OfxhParamDouble::deriveV( const OfxTime time, va_list arg ) const OFX_EXCEPTION_SPEC 00052 { 00053 double* value = va_arg( arg, double* ); 00054 00055 derive( time, *value ); 00056 } 00057 00058 /** 00059 * implementation of var args function 00060 */ 00061 void OfxhParamDouble::integrateV( const OfxTime time1, const OfxTime time2, va_list arg ) const OFX_EXCEPTION_SPEC 00062 { 00063 double* value = va_arg( arg, double* ); 00064 00065 integrate( time1, time2, *value ); 00066 } 00067 00068 } 00069 } 00070 } 00071 } 00072