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.cc

    r2282 r2448  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: toiprocessor.cc,v 1.27 2002-11-28 15:49:21 aubourg Exp $
     5// $Id: toiprocessor.cc,v 1.28 2003-10-13 20:48:37 aubourg Exp $
    66
    77#include "toiprocessor.h"
     
    9393}
    9494
    95 int TOIProcessor::getMinOut() {
     95long TOIProcessor::getMinOut() {
    9696  //  return snBegin + lowExtra;
    9797  return snBegin;
    9898}
    9999
    100 int TOIProcessor::getMaxOut() {
     100long TOIProcessor::getMaxOut() {
    101101  //  return snEnd - upExtra;
    102102  return snEnd;
    103103}
    104104
    105 int TOIProcessor::calcMinOut() {
     105long TOIProcessor::calcMinOut() {
    106106  return getMinIn() + lowExtra;
    107107}
    108108
    109 int TOIProcessor::calcMaxOut() {
     109long TOIProcessor::calcMaxOut() {
    110110  return getMaxIn() - upExtra;
    111111}
    112112
    113 int TOIProcessor::getMinIn() {
     113long TOIProcessor::getMinIn() {
    114114  //  return snBegin;
    115115  return snBegin - lowExtra;
    116116}
    117117
    118 int TOIProcessor::getMaxIn() {
     118long TOIProcessor::getMaxIn() {
    119119  //  return snEnd;
    120120  return snEnd + upExtra;
     
    312312#ifndef NO_SOPHYA
    313313/* ---- l'interface va etre modifiee, NE PAS UTILISER
    314 Array TOIProcessor::getData(int toiIndex, int iStart, int iEnd) {
     314Array TOIProcessor::getData(int toiIndex, long iStart, long iEnd) {
    315315  TOI* toi = getInputTOI(toiIndex);
    316316  toi->waitForData(iStart, iEnd);
     
    318318}
    319319
    320 Array TOIProcessor::getError(int toiIndex, int iStart, int iEnd) {
     320Array TOIProcessor::getError(int toiIndex, long iStart, long iEnd) {
    321321  TOI* toi = getInputTOI(toiIndex);
    322322  toi->waitForData(iStart, iEnd);
     
    324324}
    325325
    326 TArray<int_4> TOIProcessor::getFlag(int toiIndex, int iStart, int iEnd) {
     326TArray<int_4> TOIProcessor::getFlag(int toiIndex, long iStart, long iEnd) {
    327327  TOI* toi = getInputTOI(toiIndex);
    328328  toi->waitForData(iStart, iEnd);
     
    332332#endif
    333333
    334 double TOIProcessor::getData(int toiIndex, int i) {
     334double TOIProcessor::getData(int toiIndex, long i) {
    335335  TOI* toi = getInputTOI(toiIndex);
    336336  if (toi->needSyncOldWay()) toi->waitForData(i); // seulement pour autre que segmented
     
    339339}
    340340
    341 void  TOIProcessor::getData(int toiIndex, int i, double &data, uint_8 &flag)
     341void  TOIProcessor::getData(int toiIndex, long i, double &data, uint_8 &flag)
    342342{
    343343  TOI* toi = getInputTOI(toiIndex);
     
    348348}
    349349
    350 void TOIProcessor::getData(int toiIndex, int i, int n, double* d)
     350void TOIProcessor::getData(int toiIndex, long i, long n, double* d)
    351351{
    352352  TOI* toi = getInputTOI(toiIndex);
     
    357357}
    358358
    359 void TOIProcessor::getData(int toiIndex, int i, int n, double* d, uint_8* f)
     359void TOIProcessor::getData(int toiIndex, long i, long n, double* d, uint_8* f)
    360360{
    361361  TOI* toi = getInputTOI(toiIndex);
     
    368368
    369369/*RZCMV
    370 double TOIProcessor::getError(int toiIndex, int i) {
     370double TOIProcessor::getError(int toiIndex, long i) {
    371371  TOI* toi = getInputTOI(toiIndex);
    372372  toi->waitForData(i);
     
    374374}
    375375
    376 int_4 TOIProcessor::getFlag(int toiIndex, int i) {
     376int_4 TOIProcessor::getFlag(int toiIndex, long i) {
    377377  TOI* toi = getInputTOI(toiIndex);
    378378  toi->waitForData(i);
     
    381381*/
    382382
    383 void TOIProcessor::setNeededHistory(int nsamples) {
     383void TOIProcessor::setNeededHistory(long nsamples) {
    384384  neededHistory =  nsamples;
    385385}
    386386
    387 void TOIProcessor::wontNeedBefore(int i) {
     387void TOIProcessor::wontNeedBefore(long i) {
    388388  if (i<wontNeedValue) return;
    389389  wontNeedValue = i;
     
    394394}
    395395
    396 void TOIProcessor::autoWontNeed(int iCur) {
     396void TOIProcessor::autoWontNeed(long iCur) {
    397397  if (neededHistory <=0) return;
    398398  if (iCur < lastAWN + neededHistory/10) return;
     
    409409
    410410
    411 void TOIProcessor::putData(int toiIndex, int i, double value, uint_8 flg) {
     411void TOIProcessor::putData(int toiIndex, long i, double value, uint_8 flg) {
    412412  TOI* toi = getOutputTOI(toiIndex);
    413413  if (toi == NULL) return;
     
    417417}
    418418
    419 void TOIProcessor::putData(int toiIndex, int i, int n, double const* val,
     419void TOIProcessor::putData(int toiIndex, long i, long n, double const* val,
    420420                           uint_8 const* flg) {
    421421  TOI* toi = getOutputTOI(toiIndex);
     
    426426
    427427/*RZCMV
    428 void TOIProcessor::putDataError(int toiIndex, int i, double value,
     428void TOIProcessor::putDataError(int toiIndex, long i, double value,
    429429                                double error, int_4 flg) {
    430430  TOI* toi = getOutputTOI(toiIndex);
Note: See TracChangeset for help on using the changeset viewer.