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