Changeset 2897 in Sophya for trunk/SophyaExt/FitsIOServer/fitsntuple.cc
- Timestamp:
- Jan 13, 2006, 11:05:52 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fitsntuple.cc
r2615 r2897 53 53 if (ownobj_ && dobj_ != NULL) delete dobj_; 54 54 // if (column_ != NULL) delete [] column_; 55 } 56 57 int 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; 55 64 } 56 65 … … 167 176 dvl["Content"]= "NTuple"; 168 177 dvl.SetComment("Content", "name of SOPHYA object"); 178 dvl["SOPCLSNM"]= "SOPHYA::NTuple"; 179 dvl.SetComment("SOPCLSNM", "SOPHYA class name"); 169 180 // extension name 170 string extname("NTuple_Binary_tbl"); 181 // string extname("NTuple_Binary_tbl"); 182 string extname = os.NextExtensionName(); 171 183 172 184 vector<string> Noms(ncols);
Note:
See TracChangeset
for help on using the changeset viewer.