FACT++  1.0
int Fits::GetWrittenSize ( ) const

Get the size currently written on the disk.

Returns the size on the disk of the Fits file being written.

Definition at line 475 of file Fits.cc.

476 {
477  if (!IsOpen())
478  return 0;
479 
480  struct stat st;
481  if (stat(fFile->GetName().c_str(), &st))
482  return 0;
483 
484  return st.st_size;
485 }
bool IsOpen() const
returns wether or not the file is currently open or not
Definition: Fits.h:68
FitsFile * fFile
Definition: Fits.h:14
string GetName() const
Definition: FitsFile.h:100