Changeset 2369 in Sophya


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

PIOlib I/O

Location:
trunk/ArchTOIPipe
Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Kernel/Makefile.in

    r2359 r2369  
    5757
    5858ifeq ($(USE_PIOLIB),1)
    59   PIOFILES := piotoirdr.cc
     59  PIOFILES := piotoirdr.cc piotoiwtr.cc
    6060else
    6161  PIOFILES :=
  • 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  }
  • trunk/ArchTOIPipe/Kernel/piotoirdr.h

    r2328 r2369  
    55//                               Christophe Magneville
    66//                               Reza Ansari
    7 // $Id: piotoirdr.h,v 1.1 2003-02-24 09:18:01 aubourg Exp $
     7// $Id: piotoirdr.h,v 1.2 2003-04-24 13:22:26 aubourg Exp $
    88
    99#ifndef PIOTOIRDR_H
     
    1515
    1616#include "HL2_PIOLIB/PIOLib.h"
    17 //  #include "HL2_PIOLIB/PIOCpp.h"  // BUGGY !! Ne marche pas !!!
    1817
    1918/* Missing from PIO headers... */
     19extern "C" {
    2020PIOErr PIOFreeInfoTOI(
    2121                      PIOSTRING       *FLGname,
     
    3737                    PIOGroup *MyGroup /* Input : opened group reference */
    3838                    );
    39 
     39}
    4040/* End missing */
    4141
  • trunk/ArchTOIPipe/TestPipes/Makefile.in

    r2328 r2369  
    5353CPPFLAGS    :=  $(CPPFLAGS) @cfitsincdir@ @pioincdir@ -I. -I.. -DANSI -I$(srcdir)/../Kernel -I$(srcdir)/../Processors -I$(srcdir)/../ProcWSophya -I$(srcdir)/..
    5454
    55 ifeq ($USE_PIOLIB,1)
    56   PIOLIBS := @piolibdir@ -lpiolib
     55ifeq ($(USE_PIOLIB),1)
     56  PIOLIBS := -L@piolibdir@ -lpiolib
    5757else
    5858  PIOLIBS :=
     
    6262ifeq ($(USE_SOPHYA),1)
    6363#  LDLIBS=-L.. -latsop -latkern -latproc @cfitslibdir@ -lcfitsio $(PIOLIBS) $(LIBS)
    64   LDLIBS=-L.. -latsop -latkern -latproc $(LIBS)
     64  LDLIBS=-L.. -latsop -latkern -latproc $(PIOLIBS) $(LIBS)
    6565  LIBDEPS=../libatsop.a ../libatkern.a ../libatproc.a
    6666else
Note: See TracChangeset for help on using the changeset viewer.