hdf5/tools/h4toh5main.h
MuQun Yang 8abdfea352 [svn-r2674]
Purpose:
    1. fix size of dimensional name list so that the size of dimensional name in dumper output
will not change because of different versions of hdf library(h4toh5util.h and h4toh5sds.c).
    2. fix bzero routine for windows platform(h4toh5util.h,h4toh5util.c,h4toh5anno.c,h4toh5main.c,
	h4toh5sds.c)
Description:
    1. change the MAX_DIM_NAME into 276(MAX_NC_NAME +dimension group name) and hopefully we will
    not expand the size of MAX_NC_NAME(currently 256) for a long time.
    2. create a new routine(h4toh5_ZeroMemory) to zero out memory. Use ZeroMemory in windows and
	bzero at UNIX.
Solution:
    see Description.
Platforms tested:
    LINUX(eirene),WINDOWS 2000, sun 5.6(baldric and arabica),HP-UX11(opus),DEC(gondolin),IRIX 6.5(paz).
2000-10-12 17:47:38 -05:00

67 lines
1.9 KiB
C

#ifndef H4TOH5MAIN_H
#define H4TOH5MAIN_H
#include "hdf.h"
#include "mfhdf.h"
#include "hdf5.h"
#include "h4toh5util.h"
#include <fcntl.h>
#include <errno.h>
/* 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);
int h4toh5(char*,char*);
int get_numof_hdf4obj(char*,int32);
int set_hashtables(void);
int set_helpgroups(hid_t,hid_t*,hid_t*);
int h4toh5lonevds(int32,hid_t);
int h4toh5lonevgs(int32,int32,hid_t,hid_t,hid_t);
int h4toh5vgrings(int32,int32,hid_t,hid_t,hid_t);
int h4toh5unvisitedimages(int32,hid_t,hid_t);
int h4toh5unvisitedsds(int32,int32,hid_t,hid_t);
void free_allhashmemory(void);
/*subroutines for h4toh5vgroup.c*/
int Vgroup_h4_to_h5(int32,int32,int32,hid_t,hid_t,hid_t);
int convert_vgroup(int32,int32, int32,char* ,hid_t,hid_t,hid_t);
int convert_vdata(int32,int32,char*,hid_t);
int convert_sds(int32,int32,int32,char*,hid_t,hid_t);
int convert_image(int32,int32,char*,hid_t,hid_t);
/*subroutines for h4toh5vdata.c*/
int Vdata_h4_to_h5(int32,int32,hid_t);
int vdata_transattrs(int32,hid_t,int,int,char*);
int gen_h5comptype(int32,int32,size_t *,size_t*,hid_t*,hid_t*,hid_t,hid_t);
/* subroutines for h4toh5sds.c*/
int Sds_h4_to_h5(int32,int32,hid_t,hid_t);
int sds_transattrs(int32, hid_t,int,int);
int sdsdim_to_h5dataset(int32,int32,hid_t,hid_t,int32);
/*subroutines for h4toh5image.c*/
int Image_h4_to_h5(int32,int32,hid_t,hid_t);
int gr_tranattrs(int32, hid_t,int,int);
int gr_palette(int32,int32,hid_t,hid_t);
int create_pal_objref(hid_t ,hid_t ,char *);
/*subroutines for h4toh5anno.c*/
char* trans_tag_name(int32,ann_type);
int Annofil_h4_to_h5(int32,hid_t);
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