File: hrepack_dim.h

package info (click to toggle)
libhdf4 4.2.10-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 25,488 kB
  • ctags: 12,954
  • sloc: ansic: 146,962; sh: 14,905; fortran: 12,480; makefile: 922; yacc: 680; pascal: 418; lex: 170; csh: 41
file content (58 lines) | stat: -rw-r--r-- 1,643 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/****************************************************************************
 * NCSA HDF                                                                 *
 * Software Development Group                                               *
 * National Center for Supercomputing Applications                          *
 * University of Illinois at Urbana-Champaign                               *
 * 605 E. Springfield, Champaign IL 61820                                   *
 *                                                                          *
 * For conditions of distribution and use, see the accompanying             *
 * hdf/COPYING file.                                                        *
 *                                                                          *
 ****************************************************************************/


#ifndef REPACK_DIM_H_
#define REPACK_DIM_H_

#include "hrepack.h"


/* dimension SDS  */
typedef struct dim_name_t {
    int32 ref;                    /* reference */
    char  dim_name[H4_MAX_NC_NAME];  /* name */
} dim_name_t;

/* table for dim_name_t */
typedef struct dim_table_t {
    int        size;
    int        nobjs;
    dim_name_t *objs;
} dim_table_t;




#ifdef __cplusplus
extern "C" {
#endif

void dim_table_add(dim_table_t *dim_tbl, int ref, char* name);
void dim_table_init( dim_table_t **tbl );
void dim_table_free( dim_table_t *dim_tbl );


void match_dim(int32 sd_in,
               int32 sd_out,
               dim_table_t *dt1,
               dim_table_t *dt2,
               options_t *options);



#ifdef __cplusplus
}
#endif


#endif  /* REPACK_DIM_H_ */