HOPS
HOPS class reference
mk4_dfio.h
Go to the documentation of this file.
1 #ifndef MK4_DFIO_H
2 #define MK4_DFIO_H
3 
4 /*----------------------------------------------------------------------------*/
5 #include <stdio.h>
6 #include <sys/types.h>
7 
8 #include "type_000.h"
9 #include "type_100.h"
10 #include "type_101.h"
11 #include "type_110.h"
12 #include "type_120.h"
13 #include "type_200.h"
14 #include "type_201.h"
15 #include "type_202.h"
16 #include "type_203.h"
17 #include "type_204.h"
18 #include "type_205.h"
19 #include "type_206.h"
20 #include "type_207.h"
21 #include "type_208.h"
22 #include "type_210.h"
23 #include "type_212.h"
24 #include "type_220.h"
25 #include "type_221.h"
26 #include "type_222.h"
27 #include "type_230.h"
28 #include "type_300.h"
29 #include "type_301.h"
30 #include "type_302.h"
31 #include "type_303.h"
32 #include "type_304.h"
33 #include "type_305.h"
34 #include "type_306.h"
35 #include "type_307.h"
36 #include "type_308.h"
37 #include "type_309.h"
38 #include "mk4_typedefs.h"
39 #include "mk4_data.h"
40 
41 
42 /*----------------------------------------------------------------------------*/
43 extern struct type_100 * addr_100 (short, void *, int *);
44 extern struct type_101 * addr_101 (short, void *, int *);
45 extern struct type_110 * addr_110 (short, void *, int *);
46 extern struct type_120 * addr_120 (short, void *, int *);
47 extern struct type_200 * addr_200 (short, void *, int *);
48 extern struct type_201 * addr_201 (short, void *, int *);
49 extern struct type_202 * addr_202 (short, void *, int *);
50 extern struct type_203 * addr_203 (short, void *, int *);
51 extern struct type_204 * addr_204 (short, void *, int *);
52 extern struct type_205 * addr_205 (short, void *, int *);
53 extern struct type_206 * addr_206 (short, void *, int *);
54 extern struct type_207 * addr_207 (short, void *, int *);
55 extern struct type_208 * addr_208 (short, void *, int *);
56 extern struct type_210 * addr_210 (short, void *, int *);
57 extern struct type_212 * addr_212 (short, void *, int *);
58 extern struct type_220 * addr_220 (short, void *, int *);
59 
60 extern struct type_221 * addr_221_impl (short, void *, int *, int);
61 extern struct type_221 * addr_221 (short, void *, int *);
62 extern struct type_221 * addr_221_dummy (short, void *, int *);
63 
64 extern struct type_222 * addr_222 (short, void *, int *);
65 extern struct type_222 * addr_222_dummy (short version, void *address, int *size);
66 extern struct type_230 * addr_230 (short, void *, int *);
67 extern struct type_300 * addr_300 (short, void *, int *);
68 extern struct type_301 * addr_301 (short, void *, int *);
69 extern struct type_302 * addr_302 (short, void *, int *);
70 extern struct type_303 * addr_303 (short, void *, int *);
71 extern struct type_304 * addr_304 (short, void *, int *);
72 extern struct type_305 * addr_305 (short, void *, int *);
73 extern struct type_306 * addr_306 (short, void *, int *);
74 extern struct type_307 * addr_307 (short, void *, int *);
75 extern struct type_308 * addr_308 (short, void *, int *);
76 extern struct type_309 * addr_309 (short, void *, int *);
77 
78 /*----------------------------------------------------------------------------*/
79 extern void clear_100 (struct type_100 *);
80 extern void clear_101 (struct type_101 *);
81 extern void clear_110 (struct type_110 *);
82 extern void clear_120 (struct type_120 *);
83 extern void clear_200 (struct type_200 *);
84 extern void clear_201 (struct type_201 *);
85 extern void clear_202 (struct type_202 *);
86 extern void clear_203 (struct type_203 *);
87 extern void clear_204 (struct type_204 *);
88 extern void clear_205 (struct type_205 *);
89 extern void clear_206 (struct type_206 *);
90 extern void clear_207 (struct type_207 *);
91 extern void clear_208 (struct type_208 *);
92 extern void clear_210 (struct type_210 *);
93 extern void clear_212 (struct type_212 *);
94 extern void clear_220 (struct type_220 *);
95 extern void clear_221 (struct type_221 *);
96 extern void clear_222 (struct type_222 *);
97 extern void clear_230 (struct type_230 *);
98 extern void clear_300 (struct type_300 *);
99 extern void clear_301 (struct type_301 *);
100 extern void clear_302 (struct type_302 *);
101 extern void clear_303 (struct type_303 *);
102 extern void clear_304 (struct type_304 *);
103 extern void clear_305 (struct type_305 *);
104 extern void clear_306 (struct type_306 *);
105 extern void clear_307 (struct type_307 *);
106 extern void clear_308 (struct type_308 *);
107 extern void clear_309 (struct type_309 *);
108 
109 /*----------------------------------------------------------------------------*/
110 extern int copy_100 (struct type_100 *, char **);
111 extern int copy_101 (struct type_101 *, char **);
112 extern int copy_110 (struct type_110 *, char **);
113 extern int copy_120 (struct type_120 *, char **);
114 extern int copy_200 (struct type_200 *, char **);
115 extern int copy_201 (struct type_201 *, char **);
116 extern int copy_202 (struct type_202 *, char **);
117 extern int copy_203 (struct type_203 *, char **);
118 extern int copy_204 (struct type_204 *, char **);
119 extern int copy_205 (struct type_205 *, char **);
120 extern int copy_206 (struct type_206 *, char **);
121 extern int copy_207 (struct type_207 *, char **);
122 extern int copy_208 (struct type_208 *, char **);
123 extern int copy_210 (struct type_210 *, char **);
124 extern int copy_212 (struct type_212 *, char **);
125 extern int copy_220 (struct type_220 *, char **);
126 extern int copy_221 (struct type_221 *, char **, int*);
127 extern int copy_222 (struct type_222 *, char **, int*);
128 extern int copy_230 (struct type_230 *, char **);
129 extern int copy_300 (struct type_300 *, char **);
130 extern int copy_301 (struct type_301 *, char **);
131 extern int copy_302 (struct type_302 *, char **);
132 extern int copy_303 (struct type_303 *, char **);
133 extern int copy_304 (struct type_304 *, char **);
134 extern int copy_305 (struct type_305 *, char **);
135 extern int copy_306 (struct type_306 *, char **);
136 extern int copy_307 (struct type_307 *, char **);
137 extern int copy_308 (struct type_308 *, char **);
138 extern int copy_309 (struct type_309 *, char **);
139 
140 /*----------------------------------------------------------------------------*/
141 
142 //The following function is unused in hops 10/10/17 JPB
143 //extern int alloc_t120_array (int, int, struct index_tag *);
144 
145 extern void clear_coord (struct sky_coord *);
146 extern void clear_mk4corel (struct mk4_corel *);
147 extern void clear_mk4fringe (struct mk4_fringe *);
148 /* extern void clear_mk4root (struct mk4_root *); */
149 extern void clear_mk4sdata (struct mk4_sdata *);
150 extern void compress (U16, U8 *, U8 *, U32, U8 *, U32 *);
151 extern void compress_compress (U8 *, U8 *, U32, U8 *, U32 *);
152 extern void compress_decompress (U8 *, U8 *, U32, U8 *, U32 *);
153 extern int corel_alloc (struct mk4_corel *, int, int);
154 extern char display_221 (struct type_221 *, int);
155 extern int init_000 (struct type_000 *, char *);
156 extern int open_datafile (char [], int *, FILE **);
157 extern int read_mk4corel (char *, struct mk4_corel *);
158 extern int read_mk4file (FILE *, char **);
159 extern int read_mk4fringe_impl (char *, struct mk4_fringe *, int);
160 extern int read_mk4fringe (char *, struct mk4_fringe *);
161 extern int read_mk4fringe_truncated (char *, struct mk4_fringe *);
162 /* extern int read_mk4root (char *, struct mk4_root *); */
163 extern int read_mk4sdata_impl(char *, struct mk4_sdata *, int);
164 extern int read_mk4sdata (char *, struct mk4_sdata *);
165 extern int read_mk4sdata_truncated (char *, struct mk4_sdata *);
166 extern int write_err (FILE *, char *);
167 extern int write_mk4corel (struct mk4_corel *, char *);
168 extern int write_mk4fringe (struct mk4_fringe *, char *);
169 extern int write_mk4root (char *, char *);
170 extern int write_mk4sdata (struct mk4_sdata *, char *);
171 extern int write_record (char *, FILE *, int *);
172 #endif
const char version[]
Definition: difx2mark4.c:37
Definition: mk4_data.h:71
Definition: mk4_data.h:82
Definition: mk4_data.h:108
struct type_306 * addr_306(short, void *, int *)
Definition: addr_306.c:35
int copy_308(struct type_308 *, char **)
Definition: copy_308.c:30
int copy_202(struct type_202 *, char **)
Definition: copy_202.c:30
void clear_301(struct type_301 *)
Definition: clear_301.c:18
struct type_301 * addr_301(short, void *, int *)
Definition: addr_301.c:35
int copy_205(struct type_205 *, char **)
Definition: copy_205.c:31
void clear_230(struct type_230 *)
Definition: clear_230.c:18
struct type_207 * addr_207(short, void *, int *)
Definition: addr_207.c:37
void clear_221(struct type_221 *)
Definition: clear_221.c:18
void clear_100(struct type_100 *)
Definition: clear_100.c:19
struct type_202 * addr_202(short, void *, int *)
Definition: addr_202.c:35
int copy_305(struct type_305 *, char **)
Definition: copy_305.c:30
int copy_304(struct type_304 *, char **)
Definition: copy_304.c:30
void clear_220(struct type_220 *)
Definition: clear_220.c:18
void clear_304(struct type_304 *)
Definition: clear_304.c:19
int read_mk4fringe_impl(char *, struct mk4_fringe *, int)
Definition: read_mk4fringe.c:21
struct type_201 * addr_201(short, void *, int *)
Definition: addr_201.c:35
void compress_decompress(U8 *, U8 *, U32, U8 *, U32 *)
Definition: compress.c:310
void clear_mk4corel(struct mk4_corel *)
Definition: clear_mk4corel.c:23
int copy_302(struct type_302 *, char **)
Definition: copy_302.c:30
int copy_201(struct type_201 *, char **)
Definition: copy_201.c:29
int write_mk4corel(struct mk4_corel *, char *)
Definition: write_mk4corel.c:28
struct type_210 * addr_210(short, void *, int *)
Definition: addr_210.c:35
int copy_206(struct type_206 *, char **)
Definition: copy_206.c:31
void clear_305(struct type_305 *)
Definition: clear_305.c:18
struct type_304 * addr_304(short, void *, int *)
Definition: addr_304.c:35
void clear_208(struct type_208 *)
Definition: clear_208.c:19
struct type_206 * addr_206(short, void *, int *)
Definition: addr_206.c:36
void clear_mk4sdata(struct mk4_sdata *)
Definition: clear_mk4sdata.c:20
int copy_307(struct type_307 *, char **)
Definition: copy_307.c:30
int write_record(char *, FILE *, int *)
Definition: write_record.c:28
void clear_110(struct type_110 *)
Definition: clear_110.c:17
void clear_308(struct type_308 *)
Definition: clear_308.c:19
int copy_309(struct type_309 *, char **)
Definition: copy_309.c:29
void clear_300(struct type_300 *)
Definition: clear_300.c:19
void clear_306(struct type_306 *)
Definition: clear_306.c:19
struct type_205 * addr_205(short, void *, int *)
Definition: addr_205.c:36
int copy_212(struct type_212 *, char **)
Definition: copy_212.c:29
struct type_221 * addr_221_impl(short, void *, int *, int)
Definition: addr_221.c:35
struct type_100 * addr_100(short, void *, int *)
Definition: addr_100.c:33
void clear_206(struct type_206 *)
Definition: clear_206.c:20
int write_mk4fringe(struct mk4_fringe *, char *)
Definition: write_mk4fringe.c:25
int read_mk4fringe(char *, struct mk4_fringe *)
Definition: read_mk4fringe.c:247
int write_mk4root(char *, char *)
struct type_110 * addr_110(short, void *, int *)
Definition: addr_110.c:31
int copy_203(struct type_203 *, char **)
Definition: copy_203.c:30
int copy_303(struct type_303 *, char **)
Definition: copy_303.c:30
struct type_307 * addr_307(short, void *, int *)
Definition: addr_307.c:35
int copy_100(struct type_100 *, char **)
Definition: copy_100.c:30
struct type_120 * addr_120(short, void *, int *)
Definition: addr_120.c:33
struct type_101 * addr_101(short, void *, int *)
Definition: addr_101.c:33
int copy_222(struct type_222 *, char **, int *)
Definition: copy_222.c:29
int read_mk4sdata_impl(char *, struct mk4_sdata *, int)
Definition: read_mk4sdata.c:32
int copy_204(struct type_204 *, char **)
Definition: copy_204.c:30
int copy_306(struct type_306 *, char **)
Definition: copy_306.c:30
int copy_221(struct type_221 *, char **, int *)
Definition: copy_221.c:30
int corel_alloc(struct mk4_corel *, int, int)
Definition: corel_alloc.c:26
struct type_305 * addr_305(short, void *, int *)
Definition: addr_305.c:35
void compress(U16, U8 *, U8 *, U32, U8 *, U32 *)
Definition: compress.c:71
int read_mk4file(FILE *, char **)
Definition: read_mk4file.c:24
struct type_302 * addr_302(short, void *, int *)
Definition: addr_302.c:35
int copy_230(struct type_230 *, char **)
Definition: copy_230.c:29
void clear_222(struct type_222 *)
Definition: clear_222.c:18
void compress_compress(U8 *, U8 *, U32, U8 *, U32 *)
Definition: compress.c:141
int copy_120(struct type_120 *, char **)
Definition: copy_120.c:29
struct type_200 * addr_200(short, void *, int *)
Definition: addr_200.c:35
int copy_210(struct type_210 *, char **)
Definition: copy_210.c:29
int copy_300(struct type_300 *, char **)
Definition: copy_300.c:30
struct type_230 * addr_230(short, void *, int *)
Definition: addr_230.c:32
int init_000(struct type_000 *, char *)
Definition: init_000.c:27
int read_mk4sdata(char *, struct mk4_sdata *)
Definition: read_mk4sdata.c:345
struct type_303 * addr_303(short, void *, int *)
Definition: addr_303.c:35
void clear_210(struct type_210 *)
Definition: clear_210.c:18
int open_datafile(char[], int *, FILE **)
Definition: open_datafile.c:32
struct type_309 * addr_309(short, void *, int *)
Definition: addr_309.c:34
struct type_208 * addr_208(short, void *, int *)
Definition: addr_208.c:36
struct type_222 * addr_222_dummy(short version, void *address, int *size)
Definition: addr_222.c:165
int write_err(FILE *, char *)
Definition: write_err.c:19
void clear_120(struct type_120 *)
Definition: clear_120.c:18
void clear_212(struct type_212 *)
Definition: clear_212.c:18
int copy_301(struct type_301 *, char **)
Definition: copy_301.c:30
int copy_207(struct type_207 *, char **)
Definition: copy_207.c:32
void clear_101(struct type_101 *)
Definition: clear_101.c:18
int copy_220(struct type_220 *, char **)
Definition: copy_220.c:25
void clear_205(struct type_205 *)
Definition: clear_205.c:19
struct type_204 * addr_204(short, void *, int *)
Definition: addr_204.c:35
void clear_204(struct type_204 *)
Definition: clear_204.c:19
int copy_110(struct type_110 *, char **)
Definition: copy_110.c:28
void clear_302(struct type_302 *)
Definition: clear_302.c:18
char display_221(struct type_221 *, int)
Definition: display_221.c:75
struct type_212 * addr_212(short, void *, int *)
Definition: addr_212.c:32
void clear_307(struct type_307 *)
Definition: clear_307.c:18
void clear_202(struct type_202 *)
Definition: clear_202.c:18
int read_mk4corel(char *, struct mk4_corel *)
Definition: read_mk4corel.c:39
void clear_201(struct type_201 *)
Definition: clear_201.c:19
void clear_309(struct type_309 *)
Definition: clear_309.c:18
void clear_207(struct type_207 *)
Definition: clear_207.c:18
int read_mk4fringe_truncated(char *, struct mk4_fringe *)
Definition: read_mk4fringe.c:253
int write_mk4sdata(struct mk4_sdata *, char *)
Definition: write_mk4sdata.c:26
void clear_303(struct type_303 *)
Definition: clear_303.c:18
int copy_208(struct type_208 *, char **)
Definition: copy_208.c:31
int copy_101(struct type_101 *, char **)
Definition: copy_101.c:30
int copy_200(struct type_200 *, char **)
Definition: copy_200.c:30
struct type_221 * addr_221(short, void *, int *)
Definition: addr_221.c:136
int read_mk4sdata_truncated(char *, struct mk4_sdata *)
Definition: read_mk4sdata.c:351
struct type_308 * addr_308(short, void *, int *)
Definition: addr_308.c:35
void clear_mk4fringe(struct mk4_fringe *)
Definition: clear_mk4fringe.c:20
void clear_coord(struct sky_coord *)
Definition: clear_coord.c:5
struct type_203 * addr_203(short, void *, int *)
Definition: addr_203.c:35
struct type_222 * addr_222(short, void *, int *)
Definition: addr_222.c:157
struct type_220 * addr_220(short, void *, int *)
Definition: addr_220.c:25
struct type_221 * addr_221_dummy(short, void *, int *)
Definition: addr_221.c:144
void clear_200(struct type_200 *)
Definition: clear_200.c:19
struct type_300 * addr_300(short, void *, int *)
Definition: addr_300.c:35
void clear_203(struct type_203 *)
Definition: clear_203.c:18
unsigned char U8
Definition: mk4_typedefs.h:30
unsigned int U32
Definition: mk4_typedefs.h:32
unsigned short int U16
Definition: mk4_typedefs.h:31
Definition: mk4_typedefs.h:5
Definition: type_000.h:5
Definition: type_100.h:11
Definition: type_101.h:11
Definition: type_110.h:18
Definition: type_120.h:80
Definition: type_200.h:11
Definition: type_201.h:11
Definition: type_202.h:9
Definition: type_203.h:43
Definition: type_204.h:12
Definition: type_205.h:34
Definition: type_206.h:77
Definition: type_207.h:54
Definition: type_208.h:43
Definition: type_210.h:24
Definition: type_212.h:36
Definition: type_220.h:5
Definition: type_221.h:10
Definition: type_222.h:10
Definition: type_230.h:11
Definition: type_300.h:11
Definition: type_301.h:11
Definition: type_302.h:11
Definition: type_303.h:11
Definition: type_304.h:11
Definition: type_305.h:11
Definition: type_306.h:11
Definition: type_307.h:23
Definition: type_308.h:11
Definition: type_309.h:33