Changeset 1105 in Sophya for trunk/SophyaPI/PIext/nobjmgr.cc


Ignore:
Timestamp:
Jul 27, 2000, 7:32:01 PM (25 years ago)
Author:
ercodmgr
Message:

Minimum pour compil de PIext suite Heritage classe Image<T> de TMatrix<T> Reza+CMV 27/7/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/nobjmgr.cc

    r709 r1105  
    2121#ifdef SANS_EVOLPLANCK
    2222#include "fitsimage.h" 
    23 #else
    24 #include "fitsioserver.h" 
    2523#endif
    2624
     
    855853} ENDTRY;
    856854
    857 #else
    858 
    859  AnyDataObj * obj=NULL;
    860  FitsIoServer fios;
    861  char fitsfile[512];
    862  strncpy(fitsfile, flnm.c_str(), 512); fitsfile[511] = '\0';
    863  int hdu = 1;
    864  // Nous essayons de lire jusqu'a l'entete numero 3
    865  while (hdu < 4) {
    866    try {
    867      cout << "NamedObjMgr::ReadFITS() - Trying to read " << flnm
    868           << " HDU= " << hdu << endl;
    869      obj = fios.loadobj(fitsfile, hdu);
    870      if(obj) {
    871        ok = true;
    872        hdu = 9999;
    873      }
    874    }
    875    catch(IOExc exc) {
    876      cerr << "NamedObjMgr::ReadFITS() - IOExc " << exc.Msg() << endl;
    877      hdu++;
    878    }
    879    catch(...) {
    880      cerr << "NamedObjMgr::ReadFITS() - Error reading " << flnm << endl;
    881      hdu++;
    882      //     ok = false;
    883      // hdu = 99999;
    884    }
    885  }
    886 #endif
    887855if (ok && (obj != NULL)) {
    888856  if (nobj.length()<1)  nobj = servnobjm->FileName2Name(flnm);
    889857  AddObj((AnyDataObj*)obj, nobj);
    890858}
     859#else
     860 cerr << " NamedObjMgr::ReadFits() Vide ! A faire Reza ! " << endl;
     861#endif
     862
    891863return;
    892864}
Note: See TracChangeset for help on using the changeset viewer.