FACT++  1.0
void FitsFile::Flush ( )

Definition at line 445 of file FitsFile.cc.

References Error(), and str.

Referenced by WriteData().

446 {
447  if (!fFile)
448  return;
449 
450  int status = 0;
451  fits_flush_file(fFile->fitsPointer(), &status);
452 
453  if (status)
454  {
455  char text[30];
456  fits_get_errstatus(status, text);
457 
458  ostringstream str;
459  str << "Flushing file " << fFile->name() << " failed: " << text << " (fits_flush_file, rc=" << status << ")";
460  Error(str);
461  }
462 }
char str[80]
Definition: test_client.c:7
CCfits::FITS * fFile
Definition: FitsFile.h:18
int Error(const std::string &str)
Definition: MessageImp.h:49

+ Here is the call graph for this function:

+ Here is the caller graph for this function: