Changeset 2866 in Sophya


Ignore:
Timestamp:
Jan 2, 2006, 2:50:35 PM (20 years ago)
Author:
ansari
Message:

Ajout appel initialisation FitsIOServerInit() ds tnfits.cc tswfits.cc - Reza 2 Jan 2006

Location:
trunk/SophyaProg/Tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaProg/Tests/tnfits.cc

    r2845 r2866  
    1414#include "fitsblkrw.h"
    1515#include "fitsarrhand.h"
     16#include "fiosinit.h"
    1617
    1718/*  Programme test des classes NFits                  */
     
    2829  try {
    2930    SophyaInit(); 
     31    FitsIOServerInit();
    3032    InitTim();
    3133    {
  • trunk/SophyaProg/Tests/tswfits.cc

    r2858 r2866  
    1010// #include "swppfdtable.h"
    1111#include "fitsswapper.h"
     12#include "fiosinit.h"
    1213
    1314void test_fdtable() ;
     
    1617{
    1718  SophyaInit();
     19  FitsIOServerInit();
    1820  try {
    1921    /*
     
    5759      fiosc.CreateTable(BINARY_TBL, "rzbintbl", ttype, tform, tunit);
    5860      cout << " ---- Appel a FITSDataSwapper<double> --- " << endl;
    59       FITSDataSwapper<double> swout(&fiosc, 1);
     61      FITSDataSwapper<double> swout(fiosc, 1);
    6062      SwSegDataBlock<double> swsd(swout, SWSEGSZ, 3);
    6163      //      FITSDataSwapper<int_4> swout(&fiosc, 1);
     
    7678      FitsInOutFile si("swseg.fits", FitsInOutFile::Fits_RO);
    7779      si.MoveAbsToHDU(2);
    78       FITSDataSwapper<double> swin(&si, 1);
     80      FITSDataSwapper<double> swin(si, 1);
    7981      SwSegDataBlock<double> swsd(swin, tags, SWSEGSZ);
    8082      cout <<"7/ Recopie ds SegDataBlock<float> depuis SwSegDataBlock<float> et print" << endl;
Note: See TracChangeset for help on using the changeset viewer.