CARMA C++
archive.h
1 #ifndef archive_h
2 #define archive_h
3 
4 /*
5  * This file is required by functions that directly read or write
6  * records of SZA archive files.
7  */
8 
9 /*
10  * Enumerate the different types of NetBuf records that are found in
11  * archive files. The enumerator is used as the opcode field of the
12  * network message [as returned by net_start_get(net, &opcode)].
13  */
14 typedef enum {
15  ARC_SIZE_RECORD, /* This type of record contains a single */
16  /* long int that specifies the maximum */
17  /* size of any of the records in the file */
18  /* This record is the first in each file */
19  ARC_ARRAYMAP_RECORD, /* This type of record contains the description */
20  /* of the array map that defines the contents */
21  /* of the subsequent register frames. This is */
22  /* always the second record of each file */
23  /* Use net_get_SzaArrayMap() to unpack it */
24  ARC_FRAME_RECORD /* This type of record contains a single */
25  /* integrated register frame. All records */
26  /* after the initial two described above are */
27  /* of this form. Use net_get_RegRawData() to */
28  /* unpack them. */
29 } ArchiveRecordType;
30 
31 #endif