Ignore:
Timestamp:
Oct 12, 2001, 1:20:03 PM (24 years ago)
Author:
aubourg
Message:

restauration procsample, pb cvs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Kernel/toimanager.h

    r1684 r1687  
    44#define TOIMANAGER_H
    55
     6#include <string>
    67#include <vector>
    78
     
    2627};
    2728
     29// -----------------------------------------------------------------
     30//    Classe pour affichage de l'avancement des TOIProcessors
     31//                         Reza 08/2001
     32// -----------------------------------------------------------------
     33
     34class RzProcSampleCounter {
     35public:
     36  RzProcSampleCounter();
     37  virtual       ~RzProcSampleCounter();
     38  virtual long  ProcessedSampleCount() = 0;
     39  virtual long  PrintStats();
     40  inline int &  PrintRate(int pr) { return _rate; }
     41  inline string& InfoMessage() { return _msg; }
     42protected:
     43  int _rate;
     44  string _msg;
     45};
     46
     47template <class T>
     48class ProcSampleCounter : public RzProcSampleCounter {
     49public:
     50  ProcSampleCounter(const T & t) { _t = &t; }
     51  virtual long  ProcessedSampleCount()
     52  { return _t->ProcessedSampleCount(); }
     53protected:
     54  const T * _t;
     55};
     56
    2857#endif
     58
Note: See TracChangeset for help on using the changeset viewer.