Ignore:
Timestamp:
Apr 24, 2003, 3:22:26 PM (22 years ago)
Author:
aubourg
Message:

PIOlib I/O

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Kernel/piotoirdr.cc

    r2359 r2369  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: piotoirdr.cc,v 1.3 2003-04-01 13:27:48 aubourg Exp $
     5// $Id: piotoirdr.cc,v 1.4 2003-04-24 13:22:26 aubourg Exp $
    66
    77#include "piotoirdr.h"
     
    6161             pioGroup);
    6262
    63   // On recupere un tableau de beginIndex, mais si on en croit
    64   // la doc, dans un groupe, tout le monde a les memes bornes, donc
    65   // on peut lire le premier ?
    66 
    67   snBegin = beginIndex[0];
    68   snEnd   = endIndex[0];
     63  // On recupere un tableau de beginIndex, il faut retrouver celui qui nous concerne
     64  for (int i=0; i<nbTOI; i++) {
     65    cout << toiName[i] << endl;
     66    if (object == toiName[i]) {
     67      snBegin = beginIndex[i];
     68      snEnd   = endIndex[i];
     69      cout << snBegin << " " << snEnd << endl;
     70      break;
     71    }
     72  }
    6973
    7074  PIOFreeInfoTOI(flgName,
     
    115119    fits_lock();
    116120    PIODeleteTOI(data, pioGroup);
    117     if (flags != NULL) PIODeleteFLG(flags, pioGroup);
     121    //    if (flags != NULL) PIODeleteFLG(flags, pioGroup); // PB !
    118122    fits_unlock();
    119123  }
Note: See TracChangeset for help on using the changeset viewer.