#ident "@(#) libVIDF.h 1.6 05/08/19 SwRI" #ifndef _LIBVIDF_H_ #define _LIBVIDF_H_ #include "SDDAS_types.h" #include "vidf_defs.h" /* for VIDF_DEFS */ #include "vidf_codes.h" /* for the return codes */ #include "vidf_tensor_defs.h" /* for tensor specific information */ #include "Time_t.h" /* for Time_t */ #ifdef __cplusplus extern "C" { #endif /* error code conversion */ void vidf_error_message_str (SDDAS_SHORT, char *, int); int InitializeVIDFFromFile (char *); void CloseVIDF (); /* compatibility mode */ /* does not check times */ SDDAS_LONG read_idf (SDDAS_ULONG data_key, const char *exten, SDDAS_USHORT vnum, void *var, SDDAS_SHORT quan, SDDAS_SHORT num, SDDAS_LONG start, SDDAS_SHORT len); /* New VIDF calls */ int ReadVIDF (SDDAS_ULONG data_key, SDDAS_SHORT btime_yr, SDDAS_SHORT btime_day, SDDAS_LONG btime_sec, SDDAS_LONG btime_nsec, SDDAS_SHORT etime_yr, SDDAS_SHORT etime_day, SDDAS_LONG etime_sec, SDDAS_LONG etime_nsec, void *var, VIDF_DEFS what, SDDAS_SHORT num, SDDAS_LONG start, SDDAS_SHORT len); /* does not check time or data key - only use if you use InitializeVIDFFromFile */ int ReadFromCurrentVIDF (void *var, VIDF_DEFS what, SDDAS_SHORT num, SDDAS_LONG start, SDDAS_SHORT len); #ifdef __cplusplus } #endif #endif