IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 5, 2012, 3:29:15 PM (14 years ago)
Author:
eugene
Message:

finish the history tracking mechanism

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120805/Ohana/src/dvomerge/include/dvomerge.h

    r34277 r34391  
    4444  char *notFound;
    4545} IDmapType;
     46
     47// struct to describe a sequence of dvomerges (Image.dat header)
     48typedef struct {
     49  int Nmerge;
     50  char **IDs;
     51} dmhImage;
     52
     53// struct to describe a sequence of dvomerges (Object table : cpt header)
     54typedef 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
     62typedef 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?
     71typedef 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;
    4677
    4778int        main                   PROTO((int argc, char **argv));
     
    130161IDmapType *IDmapLoad               PROTO((char *filename));
    131162int        create_IDmap_lookup     PROTO((IDmapType *IDmap));
     163
     164// dvomerge history functions
     165OutputStatus *OutputStatusInit (int N);
     166int OutputStatusFree (OutputStatus *outstat, int N);
     167
     168int dmhObjectAdd (dmhObject *history, Header *header, dmhObjectStats *inStats);
     169int dmhObjectCheck (dmhObject *history, dmhObjectStats *inStats);
     170dmhObject *dmhObjectRead (char *filename);
     171
     172void dmhObjectStatsFree (dmhObjectStats *stats);
     173dmhObjectStats *dmhObjectStatsRead (char *filename);
     174
     175int dmhImageAdd (FITS_DB *db, dmhImage *history, char *dbID);
     176dmhImage *dmhImageRead (FITS_DB *db) ;
     177int dmhImageCheck (dmhImage *history, char *dbID);
     178
     179char *dmhImageReadID (FITS_DB *db);
     180int dvoCreateID (char *catdir);
     181
Note: See TracChangeset for help on using the changeset viewer.