00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 #ifndef CLUSTALO_PROGRESS_H
00021 #define CLUSTALO_PROGRESS_H
00022 
00023 #include "squid/stopwatch.h"
00024 
00025 typedef struct {
00026     
00027     FILE *prFile;
00028     
00029     char *pcPrefix;
00030     bool bPrintCR;
00031     char pcLastLogMsg[1024];
00032     Stopwatch_t *prStopwatch;
00033 } progress_t;
00034 
00035 
00036 extern void
00037 NewProgress(progress_t **pprProgress, FILE *prFile, char *pcPrefix, bool bPrintCR);
00038 
00039 extern void
00040 FreeProgress(progress_t **pprProgress);
00041 
00042 extern void
00043 ProgressLog(progress_t *prProgress, 
00044             unsigned long int iStep, unsigned long int iTotalSteps,
00045             bool bForceOutput);
00046 
00047 extern void
00048 ProgressDone(progress_t *pprProgress);
00049 
00050 #endif