Ignore:
Timestamp:
Oct 11, 2001, 10:15:50 PM (24 years ago)
Author:
aubourg
Message:

bug getMaxIn

File:
1 edited

Legend:

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

    r1653 r1684  
    44#define TOIMANAGER_H
    55
    6 #include <string>
    76#include <vector>
    87
     
    1211public:
    1312  static TOIManager* getManager();
    14   void setRequestedSample(long begin, long end);
    15   long getRequestedBegin();
    16   long getRequestedEnd();
     13  void setRequestedSample(int begin, int end);
     14  int getRequestedBegin();
     15  int getRequestedEnd();
    1716  void addThread(pthread_t*);
    1817  void joinAll();
     
    2726};
    2827
    29 
    30 // -----------------------------------------------------------------
    31 //    Classe pour affichage de l'avancement des TOIProcessors
    32 //                         Reza 08/2001
    33 // -----------------------------------------------------------------
    34 
    35 class RzProcSampleCounter {
    36 public:
    37                 RzProcSampleCounter();
    38   virtual       ~RzProcSampleCounter();
    39   virtual long  ProcessedSampleCount() = 0;
    40   virtual long  PrintStats();
    41   inline int &  PrintRate(int pr) { return _rate; }
    42   inline string& InfoMessage() { return _msg; }
    43 protected:
    44   int _rate;
    45   string _msg;
    46 };
    47 
    48 template <class T>
    49 class ProcSampleCounter : public RzProcSampleCounter {
    50 public:
    51                 ProcSampleCounter(const T & t) { _t = &t; }
    52   virtual long  ProcessedSampleCount()
    53                       { return _t->ProcessedSampleCount(); }
    54 protected:
    55   const T * _t;
    56 };
    57 
    5828#endif
Note: See TracChangeset for help on using the changeset viewer.