#ident "@(#) vidf_local.h 1.3 05/08/19 SwRI" #ifndef _VIDF_LOCAL_H_ #define _VIDF_LOCAL_H_ #include /* for MAXPATHLEN */ #include "Time_t.h" /* for Time_t */ #include "old_vidf_str.h" #include "vidf_defs.h" /* for VIDF_DEFS */ #include "vidf_parse.h" #include "SDDAS_types.h" /* * This is a private structure which is global that defines the current * status of the VIDF. */ typedef struct { SDDAS_ULONG _DataKey; char _FileName [MAXPATHLEN]; char _VirtualName [9]; Time_t _BTime; Time_t _ETime; void *_vidf; SDDAS_BOOL _usingNewVIDF; } VIDFInfo; #if defined(__cplusplus) extern "C" { #endif /* stuff for the old_vidf */ SDDAS_SHORT ParseOldVIDF (vidf_info *VIDF_INFO, char *filename); SDDAS_SHORT create_vidf_structure (void **); void free_vidf_structure (vidf_info *); SDDAS_SHORT init_vidf (vidf_info *, int, SDDAS_CHAR); SDDAS_LONG ReadOldVIDF (vidf_info *, int, SDDAS_CHAR *, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_SHORT); SDDAS_LONG read_idf_memory (vidf_info *, const SDDAS_CHAR *, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_SHORT); SDDAS_LONG read_idf_disk (vidf_info *, int, const SDDAS_CHAR *, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_SHORT); /* stuff for the new VIDF */ vidf_vals *FindNameinVIDF (void *root, char *name, vidf_vals **ret_val); void FreeVIDFVals (vidf_vals **); int v_lex_destroy (); int v_parse (); void DeleteVIDF (void *); int ParseNewVIDF (void **, char *); void CreateCache (); void ClearCache (); /* ReadNewVIDF will handle old compatibility problems with read_idf GetFromNewVIDF will not. It reads the file directly - thus it is not public. It also return an entire array! */ int ReadNewVIDF (void *pVIDF, void *var, VIDF_DEFS quan, SDDAS_SHORT num, SDDAS_LONG start, SDDAS_SHORT len); int GetFromNewVIDF (void *pVIDF, void *ToBeFilled, VIDF_DEFS what, SDDAS_SHORT which); #if defined(__cplusplus) } #endif #endif