diff options
Diffstat (limited to 'tools/h4toh5main.h')
-rw-r--r-- | tools/h4toh5main.h | 47 |
1 files changed, 45 insertions, 2 deletions
diff --git a/tools/h4toh5main.h b/tools/h4toh5main.h index bac5baf..2bb6c88 100644 --- a/tools/h4toh5main.h +++ b/tools/h4toh5main.h @@ -1,3 +1,33 @@ +/*------------------------------------------------------------------------- + * + * Copyright (C) 2000 National Center for Supercomputing Applications. + * All rights reserved. + * + *------------------------------------------------------------------------- + */ + +/****************************************************************************** + +Description: + +1. converter + +See HDF4 to HDF5 mapping specification at +(http://hdf.ncsa.uiuc.edu/HDF5/papers/h4toh5) for the default mapping +from HDF4 object to HDF5 object. + +The whole converter includes 10 files, h4toh5util.h, h4toh5main.h, h4toh5util.c, h4toh5main.c, h4toh5sds.c, h4toh5image.c,h4toh5vdata.c,h4toh5vgroup.c,h4toh5pal.c and h4toh5anno.c. + +2. this file + +including declarations of subroutines of all .c files excluding h4toh5util.c. + +Author: Kent Yang(ymuqun@ncsa.uiuc.edu) + + +*****************************************************************************/ + + #ifndef H4TOH5MAIN_H #define H4TOH5MAIN_H #include "hdf.h" @@ -6,13 +36,26 @@ #include "h4toh5util.h" #include <fcntl.h> #include <errno.h> +#endif + +/* For windows support.*/ +#if WIN32 +typedef unsigned int mode_t; +#endif + +#ifndef S_ISDIR +#define S_ISDIR(mode) (((mode)&0xF000) == S_IFDIR) +#endif + +/* subroutines to check initial settings and inputting parameters. +Adapted from h5toh4 tools and used for h4toh5main.c */ -/* subroutines adapted from h5toh4 tools and used for h4toh5main.c */ void PrintOptions_h4toh5(void); int test_file(char *filename,int oflag,mode_t mode); int test_dir(char *); char *BuildFilename(char *filename, char *ext); +/* subroutines for h4toh5main.c */ int h4toh5(char*,char*); int get_numof_hdf4obj(char*,int32); int set_hashtables(void); @@ -57,7 +100,7 @@ int Annoobj_h4_to_h5(int32,int32,int32,hid_t); /*subroutines for h4toh5pal.c*/ int Palette_h4_to_h5(int32,int32 ,hid_t,char *); -#endif + |