File: hdiff_table.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 (63 lines) | stat: -rw-r--r-- 1,838 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
59
60
61
62
63
/****************************************************************************
 * 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 HDIFF_TABLE_H__
#define HDIFF_TABLE_H__


#include "hdf.h"
#include "mfhdf.h"


#ifdef __cplusplus
extern "C" {
#endif


/*struct to store the tag/ref and path of an object 
 the pair tag/ref uniquely identifies an HDF object */
typedef struct dobj_info_t {
 int32   tag;
 int32   ref;
 char    obj_name[H4_MAX_NC_NAME];
 int     flags[2];     
 /*flags that store matching object information
   between the 2 files 
   object exists in file = 1
   does not exist        = 0
 */
} dobj_info_t;

/*struct that stores all objects */
typedef struct dtable_t {
 uint32     size;
 uint32     nobjs;
 dobj_info_t *objs;
} dtable_t;


/* table methods */
void  dtable_init(dtable_t **table);
void  dtable_free(dtable_t *table);
int   dtable_search(dtable_t *table, int32 tag, int32 ref );
void  dtable_add(dtable_t *table, int32 tag, int32 ref, char* obj_name);
void  dtable_print(dtable_t *table, char* header);



#ifdef __cplusplus
}
#endif


#endif  /* HDIFF_TABLE_H__ */