Changeset 1219 in Sophya for trunk/SophyaExt
- Timestamp:
- Oct 5, 2000, 11:17:43 AM (25 years ago)
- Location:
- trunk/SophyaExt/FitsIOServer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fitsbntbllineRW.cc
r1209 r1219 16 16 } 17 17 18 FITS_BntblLineReader::FITS_BntblLineReader(char inputfile[],int hdunum) 18 FITS_BntblLineReader::FITS_BntblLineReader(char inputfile[],int hdunum) 19 19 20 { 20 21 InitNull(); … … 98 99 99 100 100 FITS_BntblLineWriter::FITS_BntblLineWriter()101 {102 InitNull();103 }104 101 105 FITS_BntblLineWriter::FITS_BntblLineWriter(char inputfile[],int dc, int fc,int ic, int cc, vector<string> names, WriteMode wrm)102 FITS_BntblLineWriter::FITS_BntblLineWriter(char inputfile[],int dc, int fc,int ic, int cc, vector<string> names,DVList& dvl, WriteMode wrm) 106 103 { 107 104 int k; … … 132 129 StringSizes[k] = names[dc+fc+ic+k].length(); 133 130 } 134 DVList dvl;135 131 string extname("Lines_on_Binary_tbl"); 132 136 133 outFits_->makeHeaderBntblOnFits(types, names, 1, nbcols, dvl, extname,StringSizes); 137 134 ligne_.setFormat(dc, fc, ic, cc, names); … … 141 138 FITS_BntblLineWriter::~FITS_BntblLineWriter() 142 139 { 140 if (dvl_ != NULL) delete dvl_; 143 141 if (outFits_ != NULL) delete outFits_; 144 142 } -
trunk/SophyaExt/FitsIOServer/fitsbntbllineRW.h
r1209 r1219 4 4 #ifndef FITSBntblLineRW_SEEN 5 5 #define FITSBntblLineRW_SEEN 6 #include "dvlist.h" 6 7 #include "fitsfile.h" 7 8 //#include "xntuple.h" … … 58 59 { 59 60 61 60 62 public: 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); 63 64 ~FITS_BntblLineWriter(); 64 65 void WriteNextLine( BnTblLine& WorkLine); 66 67 // Renvoie une reference sur l''objet DVList Associe 68 DVList& Info() 69 { 70 if (dvl_ == NULL) dvl_ = new DVList; 71 return(*dvl_); 72 } 65 73 66 74 private : … … 68 76 inline void InitNull() 69 77 { 78 dvl_ = NULL; 70 79 outFits_ = NULL; 71 80 nextLineToBeWritten_= 0; … … 84 93 long nextLineToBeWritten_; 85 94 BnTblLine ligne_; 95 DVList* dvl_; 86 96 }; 87 97
Note:
See TracChangeset
for help on using the changeset viewer.