Ignore:
Timestamp:
Aug 9, 2002, 3:03:41 PM (23 years ago)
Author:
cmv
Message:

long long et uint_2 cmv 9/8/02

File:
1 edited

Legend:

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

    r2169 r2170  
    306306  \endverbatim
    307307*/
    308 void FitsABTWriter::Write(int col,long row,short val)
     308void FitsABTWriter::Write(int col,long row,int_2 val)
    309309{
    310310  if(FirstTime) createtbl();
     
    312312  if(fits_write_col(FitsPtr,TSHORT,col+1,row+1,1,1,&val,&sta))
    313313    printerrorwrite("short",col,row,sta);
     314}
     315
     316/*! Write unsigned short (2 Bytes) data to FITS file (see below) */
     317void FitsABTWriter::Write(int col,long row,uint_2 val)
     318{
     319  if(FirstTime) createtbl();
     320  int sta=0;
     321  if(fits_write_col(FitsPtr,TUSHORT,col+1,row+1,1,1,&val,&sta))
     322    printerrorwrite("unsigned short",col,row,sta);
    314323}
    315324
     
    365374      that is "N-1" is the number of the last row written.
    366375*/
     376/*! Write a vector of unsigned short (2 Bytes) data to FITS file (see below) */
     377long FitsABTWriter::Write(int col,long row,TVector<uint_2>& val)
     378{
     379  if(FirstTime) createtbl();
     380  long nel = val.Size();
     381  int sta=0;
     382  if(fits_write_col(FitsPtr,TUSHORT,col+1,row+1,1,nel,val.Data(),&sta))
     383    printerrorwrite("long",col,row,sta);
     384  return row+nel;
     385}
     386
    367387/*! Write a vector of long (4 Bytes) data to FITS file (see below) */
    368388long FitsABTWriter::Write(int col,long row,TVector<int_4>& val)
     
    389409  return row+nel;
    390410#else
    391   throw PException("FitsABTWriter::Write(..,TVector<int_8>&) Not in that cfitio version");
     411  throw PException("FitsABTWriter::Write(..,TVector<int_8>&) Not in that cfitsio version");
    392412#endif
    393413}
Note: See TracChangeset for help on using the changeset viewer.