Changeset 1219 in Sophya for trunk/SophyaExt


Ignore:
Timestamp:
Oct 5, 2000, 11:17:43 AM (25 years ago)
Author:
ansari
Message:

dvlist dans ecriture ligne a ligne

Location:
trunk/SophyaExt/FitsIOServer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/FitsIOServer/fitsbntbllineRW.cc

    r1209 r1219  
    1616}
    1717
    18 FITS_BntblLineReader::FITS_BntblLineReader(char inputfile[],int hdunum)
     18FITS_BntblLineReader::FITS_BntblLineReader(char inputfile[],int hdunum)
     19                                                                 
    1920{
    2021  InitNull();
     
    9899
    99100
    100 FITS_BntblLineWriter::FITS_BntblLineWriter()
    101 {
    102   InitNull();
    103 }
    104101
    105 FITS_BntblLineWriter::FITS_BntblLineWriter(char inputfile[],int dc, int fc,int ic, int cc, vector<string> names,  WriteMode wrm)
     102FITS_BntblLineWriter::FITS_BntblLineWriter(char inputfile[],int dc, int fc,int ic, int cc, vector<string> names,DVList& dvl,  WriteMode wrm)
    106103{
    107104  int k;
     
    132129      StringSizes[k] = names[dc+fc+ic+k].length();
    133130    }           
    134   DVList dvl;
    135131  string extname("Lines_on_Binary_tbl");
     132
    136133  outFits_->makeHeaderBntblOnFits(types, names, 1, nbcols, dvl, extname,StringSizes);
    137134    ligne_.setFormat(dc, fc, ic, cc, names);
     
    141138FITS_BntblLineWriter::~FITS_BntblLineWriter()
    142139{
     140  if (dvl_ != NULL) delete dvl_;
    143141  if (outFits_ != NULL)  delete outFits_;
    144142}
  • trunk/SophyaExt/FitsIOServer/fitsbntbllineRW.h

    r1209 r1219  
    44#ifndef FITSBntblLineRW_SEEN
    55#define FITSBntblLineRW_SEEN
     6#include "dvlist.h"
    67#include "fitsfile.h"
    78//#include "xntuple.h"
     
    5859{
    5960
     61
    6062public:
    61 FITS_BntblLineWriter();
    62  FITS_BntblLineWriter(char inputfile[],int dc, int fc, int ic, int cc, vector<string> names,  WriteMode wrm = clear);
     63 FITS_BntblLineWriter(char inputfile[],int dc, int fc, int ic, int cc, vector<string> names, DVList& dvl, WriteMode wrm = clear);
    6364~FITS_BntblLineWriter();
    6465 void WriteNextLine( BnTblLine& WorkLine);
     66
     67// Renvoie une reference sur l''objet DVList Associe
     68DVList& Info()
     69  {
     70    if (dvl_ == NULL)  dvl_ = new DVList;
     71    return(*dvl_);
     72  }
    6573
    6674 private :
     
    6876inline void InitNull()
    6977   {
     78     dvl_ = NULL;
    7079     outFits_ = NULL;
    7180     nextLineToBeWritten_= 0;
     
    8493  long nextLineToBeWritten_;
    8594  BnTblLine ligne_;
     95  DVList* dvl_;
    8696};
    8797
Note: See TracChangeset for help on using the changeset viewer.