FACT++  1.0
CompressedFitsFile::~CompressedFitsFile ( )
virtual

default destructor

Definition at line 604 of file fitsCompressor.cc.

References _buffer, _compressedBuffer, _file, _numThreads, _transposedBuffer, and i.

605 {
606  if (_buffer != NULL)
607  {
608  _buffer = _buffer-4;
609  delete[] _buffer;
610  _buffer = NULL;
611  for (uint32_t i=0;i<_numThreads;i++)
612  {
614  delete[] _transposedBuffer[i];
615  delete[] _compressedBuffer[i];
616  _transposedBuffer[i] = NULL;
617  _compressedBuffer[i] = NULL;
618  }
619  }
620  if (_file.is_open())
621  _file.close();
622 }
int i
Definition: db_dim_client.c:21
uint32_t _numThreads
The number of threads that will be used to compress.
vector< char * > _transposedBuffer
Memory buffer to store rows while they are transposed.
fstream _file
The actual file streamer for accessing disk data.
char * _buffer
Memory buffer to store rows while they are not compressed.
vector< char * > _compressedBuffer
Memory buffer to store rows while they are compressed.