FACT++  1.0
void FitsFile::Close ( )

Definition at line 428 of file FitsFile.cc.

Referenced by WriteData(), and ~FitsFile().

429 {
430  if (!fFile)
431  return;
432 
433  if (fIsOwner)
434  {
435  const string name = fFile->name();
436  delete fFile;
437  }
438 
439  //WARNING: do NOT delete the table as it gets deleted by the
440  // fFile object
441  fFile = NULL;
442  fTable = NULL;
443 }
CCfits::Table * fTable
The pointer to the CCfits FITS file.
Definition: FitsFile.h:19
CCfits::FITS * fFile
Definition: FitsFile.h:18
bool fIsOwner
Definition: FitsFile.h:24

+ Here is the caller graph for this function: