Ignore:
Timestamp:
Oct 13, 2003, 10:48:37 PM (22 years ago)
Author:
aubourg
Message:

pb long/int

File:
1 edited

Legend:

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

    r2187 r2448  
    55//                               Christophe Magneville
    66//                               Reza Ansari
    7 // $Id: toiprocessor.h,v 1.20 2002-09-09 15:33:15 aubourg Exp $
     7// $Id: toiprocessor.h,v 1.21 2003-10-13 20:48:37 aubourg Exp $
    88
    99
     
    4848  virtual void run();
    4949
    50   virtual int   getMinOut();
    51   virtual int   getMaxOut();
     50  virtual long  getMinOut();
     51  virtual long  getMaxOut();
    5252 
    5353  // rajout vf 29/07/2002
     
    7171#ifndef NO_SOPHYA
    7272  /* ---- l'interface va etre modifiee, NE PAS UTILISER
    73   Array         getData(int toiIndex, int iStart, int iEnd);
    74   Array         getError(int toiIndex, int iStart, int iEnd);
    75   TArray<int_4> getFlag(int toiIndex, int iStart, int iEnd);
     73  Array         getData(int toiIndex, long iStart, long iEnd);
     74  Array         getError(int toiIndex, long iStart, long iEnd);
     75  TArray<int_4> getFlag(int toiIndex, long iStart, long iEnd);
    7676          l'interface va etre modifiee, NE PAS UTILISER ---- */
    7777#endif
     
    8080  // Les methodes qui suivent ne peuvent etre
    8181  // utilisees que sur des entrees simples
    82   double        getData(int toiIndex, int i);
    83   void          getData(int toiIndex, int i, double &data, uint_8 &flag);
    84 
    85   void          getData(int toiIndex, int i, int n, double* d);
    86   void          getData(int toiIndex, int i, int n, double* d, uint_8* f);
    87  
    88   //RZCMV  double        getError(int toiIndex, int i);
    89   //RZCMV  int_4         getFlag(int toiIndex, int i);
    90 
    91   void          wontNeedBefore(int i);
    92   int           wontNeedValue;
    93   void          setNeededHistory(int nsamples); // -1 : disable
    94 
    95   void          putData(int toiIndex, int i, double value, uint_8 flag=0);
    96   //RZCMV  void          putDataError(int toiIndex, int i, double value,
     82  double        getData(int toiIndex, long i);
     83  void          getData(int toiIndex, long i, double &data, uint_8 &flag);
     84
     85  void          getData(int toiIndex, long i, long n, double* d);
     86  void          getData(int toiIndex, long i, long n, double* d, uint_8* f);
     87 
     88  //RZCMV  double        getError(int toiIndex, long i);
     89  //RZCMV  int_4         getFlag(int toiIndex, long i);
     90
     91  void          wontNeedBefore(long i);
     92  long           wontNeedValue;
     93  void          setNeededHistory(long nsamples); // -1 : disable
     94
     95  void          putData(int toiIndex, long i, double value, uint_8 flag=0);
     96  //RZCMV  void          putDataError(int toiIndex, long i, double value,
    9797  //RZCMV                            double error, int_4 flag=0);
    9898
    99   void          putData(int toiIndex, int i, int n, double const* val,
     99  void          putData(int toiIndex, long i, long n, double const* val,
    100100                        uint_8 const* flg=0);
    101101
     
    103103public: 
    104104  // Methodes passees en public par Reza, 14/5/2002
    105   virtual int   calcMinOut(); // Protected ?
    106   virtual int   calcMaxOut(); // Protected ?
    107 
    108   virtual int   getMinIn();
    109   virtual int   getMaxIn();
     105  virtual long   calcMinOut(); // Protected ?
     106  virtual long   calcMaxOut(); // Protected ?
     107
     108  virtual long   getMinIn();
     109  virtual long   getMaxIn();
    110110protected:
    111111  // Implementation par defaut
    112   int           minOut;    // Cache for calcMinOut() value. Protected ?
    113   int           maxOut;    // Cache for calcMaxOut() value. Protected ?
     112  long           minOut;    // Cache for calcMinOut() value. Protected ?
     113  long           maxOut;    // Cache for calcMaxOut() value. Protected ?
    114114
    115115  int           upExtra;  // MaxIn - MaxOut : extra samples for processing
    116116  int           lowExtra; // MinOut - MinIn : extra samples for processing
    117117
    118   int           forcedMinIn; // to process a subset of data
    119   int           forcedMaxIn; // to process a subset of data
    120   void          setSampleSubset(int min, int max);
     118  long           forcedMinIn; // to process a subset of data
     119  long           forcedMaxIn; // to process a subset of data
     120  void          setSampleSubset(long min, long max);
    121121
    122122  int           neededHistory;
     
    134134  //  Fin rajout Reza 11/3/2001
    135135
    136   void          autoWontNeed(int iCur);
    137   int           lastAWN;
     136  void          autoWontNeed(long iCur);
     137  long           lastAWN;
    138138
    139139
     
    158158  virtual ~TOIProcessor();
    159159 
    160   void setMinSn(int n) {forcedMinIn = n;}
    161   void setMaxSn(int n) {forcedMaxIn = n;}
     160  void setMinSn(long n) {forcedMinIn = n;}
     161  void setMaxSn(long n) {forcedMaxIn = n;}
    162162
    163163  // ajout vf 23/08/2002
Note: See TracChangeset for help on using the changeset viewer.