Changeset 2382 in Sophya for trunk/ArchTOIPipe
- Timestamp:
- May 16, 2003, 3:40:09 PM (22 years ago)
- Location:
- trunk/ArchTOIPipe/Kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/Makefile.in
r2369 r2382 65 65 fitstoirdr.cc fitstoiwtr.cc asciitoiwtr.cc \ 66 66 toisegment.cc toiseqbuff.cc cgt.cc \ 67 ring.cc \ 67 68 fitsringwtr.cc fitsringrdr.cc $(PIOFILES) 68 69 -
trunk/ArchTOIPipe/Kernel/piotoirdr.cc
r2369 r2382 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: piotoirdr.cc,v 1. 4 2003-04-24 13:22:26aubourg Exp $5 // $Id: piotoirdr.cc,v 1.5 2003-05-16 13:40:09 aubourg Exp $ 6 6 7 7 #include "piotoirdr.h" … … 92 92 double* data; 93 93 uint_8* flags = NULL; 94 PIOBYTE** pioflags = NULL; 94 95 fits_lock(); 95 96 PIOLONG n = PIOReadTOI((void**) &data, … … 99 100 pioGroup); 100 101 if (flagdef != "") { 101 PIOLONG nf = PIOReadFLG ((PIOLONG**)&flags, // dangereux ?102 const_cast<char*>(flagdef.c_str()),103 command,104 pioGroup);102 PIOLONG nf = PIOReadFLGObjectMask(pioflags, 103 const_cast<char*>(flagdef.c_str()), 104 command, 105 pioGroup); 105 106 if (nf != n) { 106 cerr << "*** PIO Error, inconsistent read, data " << n << " flags " << nf << endl; 107 cerr << "*** PIO Error, inconsistent read, data " << n << " flags " 108 << nf << endl; 107 109 abort(); 108 110 } 111 flags = new uint_8[nf]; 112 for (int i=0; i<nf; i++) flags[i] = pioflags[i]; 113 PIODeleteFLG(pioflags, pioGroup); 109 114 } 110 115 fits_unlock(); … … 120 125 PIODeleteTOI(data, pioGroup); 121 126 // if (flags != NULL) PIODeleteFLG(flags, pioGroup); // PB ! 127 if (flags != NULL) delete[] flags; 122 128 fits_unlock(); 123 129 }
Note:
See TracChangeset
for help on using the changeset viewer.