Changeset 34405 for trunk/Ohana/src/dvomerge/include/dvomerge.h
- Timestamp:
- Sep 5, 2012, 4:25:56 PM (14 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/dvomerge/include/dvomerge.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
- Property svn:mergeinfo set to
-
trunk/Ohana/src/dvomerge/include/dvomerge.h
r34277 r34405 44 44 char *notFound; 45 45 } IDmapType; 46 47 // struct to describe a sequence of dvomerges (Image.dat header) 48 typedef struct { 49 int Nmerge; 50 char **IDs; 51 } dmhImage; 52 53 // struct to describe a sequence of dvomerges (Object table : cpt header) 54 typedef struct { 55 int Nmerge; 56 off_t *size; 57 time_t *time; 58 char **date; 59 } dmhObject; 60 61 // data on a single table, populated when a new file is merged 62 typedef struct { 63 off_t size; 64 time_t time; 65 char *date; 66 } dmhObjectStats; 67 68 // struct to describe the current status of a single output file: 69 // is it on this machine (valid)? have we already merged or not (missed)? 70 // what is the collection of past merges (history)? what is the real filename? 71 typedef struct { 72 int valid; // is this object table on this machine? 73 int missed; // did we fail to merge into this table yet? 74 dmhObject *history; // complete sequence of previous merges 75 char *filename; // true filename on disk 76 } OutputStatus; 46 77 47 78 int main PROTO((int argc, char **argv)); … … 130 161 IDmapType *IDmapLoad PROTO((char *filename)); 131 162 int create_IDmap_lookup PROTO((IDmapType *IDmap)); 163 164 // dvomerge history functions 165 OutputStatus *OutputStatusInit (int N); 166 int OutputStatusFree (OutputStatus *outstat, int N); 167 168 int dmhObjectAdd (dmhObject *history, Header *header, dmhObjectStats *inStats); 169 int dmhObjectCheck (dmhObject *history, dmhObjectStats *inStats); 170 dmhObject *dmhObjectRead (char *filename); 171 172 void dmhObjectStatsFree (dmhObjectStats *stats); 173 dmhObjectStats *dmhObjectStatsRead (char *filename); 174 175 int dmhImageAdd (FITS_DB *db, dmhImage *history, char *dbID); 176 dmhImage *dmhImageRead (FITS_DB *db) ; 177 int dmhImageCheck (dmhImage *history, char *dbID); 178 179 char *dmhImageReadID (FITS_DB *db); 180 int dvoCreateID (char *catdir); 181
Note:
See TracChangeset
for help on using the changeset viewer.
