Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields

progress.h

00001 /***************************************************************************
00002                           progress.h  -  description
00003                              -------------------
00004     begin                : Sat May 3 2003
00005     copyright            : (C) 2003 by Gabor Torok
00006     email                : cctorok@yahoo.com
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef PROGRESS_H
00019 #define PROGRESS_H
00020 
00021 #include "../constants.h"
00022 #include "../scourge.h"
00023 
00024 using namespace std;
00025         
00029 class Progress  {                                                               
00030  private:
00031   Scourge *scourge;
00032   int maxStatus;
00033   int status;
00034   bool clearScreen;
00035   bool center;
00036   bool opaque;
00037  
00038  public:
00039   Progress(Scourge *scourge, int maxStatus, bool clearScreen=false, bool center=false, bool opaque=true);
00040   virtual ~Progress();  
00041   void updateStatus(const char *message, bool updateScreen=true, int status=-1, int maxStatus=-1, int altStatus=-1);
00042   inline void setStatus( int status ) { this->status = status; }
00043   inline int getStatus() { return status; }
00044 };
00045 
00046 #endif
00047 

Generated on Thu Jun 16 21:50:43 2005 for scourge by  doxygen 1.4.0