Ignore:
Timestamp:
Jan 13, 2006, 11:05:52 AM (20 years ago)
Author:
ansari
Message:

Mise en place de l heritage FitsIOHandler (ancien) de FitsHandlerInterface pour une gestion commune - a partir de FitsManager - Reza 13/01/2006

File:
1 edited

Legend:

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

    r2615 r2897  
    5353  if (ownobj_ && dobj_ != NULL) delete dobj_;
    5454  //  if (column_ != NULL) delete [] column_;
     55}
     56
     57int  FITS_NTuple::CheckReadability(FitsInOutFile& is)
     58{
     59  if (is.CurrentHDUType() == IMAGE_HDU ) return 0;
     60  string key = "SOPCLSNM";
     61  string clsnm = is.KeyValue(key);
     62  if (clsnm == "SOPHYA::NTuple")  return 2;
     63  else return 1;
    5564}
    5665
     
    167176  dvl["Content"]= "NTuple";
    168177  dvl.SetComment("Content", "name of SOPHYA object");
     178  dvl["SOPCLSNM"]= "SOPHYA::NTuple";
     179  dvl.SetComment("SOPCLSNM", "SOPHYA class name");
    169180  // extension name
    170   string extname("NTuple_Binary_tbl");
     181  // string extname("NTuple_Binary_tbl");
     182  string extname = os.NextExtensionName();
    171183
    172184  vector<string> Noms(ncols);   
Note: See TracChangeset for help on using the changeset viewer.