ingest_stats.h

Go to the documentation of this file.
00001 /*******************************************************************************
00002 *
00003 *  COPYRIGHT (C) 2006 Battelle Memorial Institute.  All Rights Reserved.
00004 *
00005 ********************************************************************************
00006 *
00007 *  Author:
00008 *     name:  Brian Ermold
00009 *     phone: (509) 375-2277
00010 *     email: brian.ermold@pnl.gov
00011 *
00012 ********************************************************************************
00013 *
00014 *  RCS INFORMATION:
00015 *    $RCSfile: ingest_stats.h,v $
00016 *    $Revision: 1.3 $
00017 *    $Locker:  $
00018 *    $Date: 2006/03/18 10:03:19 $
00019 *    $State: ds-dsutil-ingest_lib-1.1-0 $
00020 *
00021 *******************************************************************************/
00022 
00023 #ifndef INGEST_STATS_H
00024 #define INGEST_STATS_H
00025 
00026 #include "DataStore.h"
00027 #include "ingest_datachunk.h"
00028 
00029 /*******************************************************************************
00030 *  Typedefs:
00031 */
00032 
00033 typedef struct {
00034     off_t  tot_bytes;
00035     off_t  good_bytes;
00036     off_t  bad_bytes;
00037     int   tot_files;
00038     int   good_files;
00039     int   bad_files;
00040 } FileStats;
00041 
00042 typedef struct {
00043     long     tot_samples;
00044     long     plat_samples[MAX_DCS];
00045     char     plat_name[MAX_DCS][32];
00046     ZebTime  begin_time[MAX_DCS];
00047     ZebTime  end_time[MAX_DCS];
00048 } DcStats;
00049 
00050 /* End Typedefs */
00051 
00052 /*******************************************************************************
00053 *  Prototypes:
00054 */
00055 
00056 void reset_file_stats();
00057 void set_file_stats(char *filename);
00058 void write_file_stats();
00059 
00060 void reset_dc_stats();
00061 void set_dc_stats(DataChunk *dc);
00062 void write_dc_stats();
00063 
00064 /* End Prototypes */
00065 
00066 #endif

Generated on Tue Sep 12 20:12:37 2006 for DSUTIL-INGEST_LIB by doxygen 1.3.5