check_series_macros.h File Reference

#include <math.h>
#include <lal/LALConstants.h>
#include <lal/XLALError.h>
#include <lal/Date.h>
#include <lal/Units.h>

Include dependency graph for check_series_macros.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LAL_CHECK_VALID_SERIES(s, val)
#define LAL_CHECK_CONSISTENT_TIME_SERIES(s1, s2, val)


Define Documentation

#define LAL_CHECK_VALID_SERIES ( s,
val   ) 

Value:

do {                 if ( !(s) ) XLAL_ERROR_VAL( func, XLAL_EFAULT, val );                 if ( !(s)->data || !(s)->data->data || !(s)->data->length ) XLAL_ERROR_VAL( func, XLAL_EINVAL, val );         } while (0)

Definition at line 7 of file check_series_macros.h.

#define LAL_CHECK_CONSISTENT_TIME_SERIES ( s1,
s2,
val   ) 

Value:

do {                 if ( XLALGPSCmp( &(s1)->epoch, &(s2)->epoch ) != 0 ) XLAL_ERROR_VAL( func, XLAL_ETIME, val );                 if ( fabs( (s1)->deltaT - (s2)->deltaT ) > LAL_REAL8_EPS ) XLAL_ERROR_VAL( func, XLAL_ETIME, val );                 if ( fabs( (s1)->f0 - (s2)->f0 ) > LAL_REAL8_EPS ) XLAL_ERROR_VAL( func, XLAL_EFREQ, val );                 if ( XLALUnitCompare( &(s1)->sampleUnits, &(s2)->sampleUnits ) != 1 ) XLAL_ERROR_VAL( func, XLAL_EUNIT, val );                 if ( (s1)->data->length != (s1)->data->length ) XLAL_ERROR_VAL( func, XLAL_EBADLEN, val );         } while (0)

Definition at line 13 of file check_series_macros.h.


Generated on Sat Aug 30 03:13:35 2008 for LAL by  doxygen 1.5.2