pelican/utility/test/src/TestFile.cpp
/**
 * @details Destroys the TestFile object.
 */
@details Destroys the TestFile object.
@details Destroys the TestFile object .
TestFile::~TestFile()
{
    if( _cleanup ) {
        if( QFile::exists(_filename) ) {
            QFile::remove(_filename);
        }
        QMutexLocker lock( &_mutex );
        _reserved.removeAll(_filename);
    }
    else {
        if( QFileInfo(_filename).isDir() ) {
            std::cout << "TestFile: not removing temporary file: "
                      << _filename.toStdString() << std::endl;
        }
    }
}
TestFile :: ~ TestFile ( ) { if ( _cleanup ) { if ( QFile :: exists ( _filename ) ) { QFile :: remove ( _filename ) ; } QMutexLocker lock ( & _mutex ) ; _reserved . removeAll ( _filename ) ; } else { if ( QFileInfo ( _filename ) . isDir ( ) ) { std :: cout << " " << _filename . toStdString ( ) << std :: endl ; } } }
@details Destroys the TestFile object.
@details Destroys the TestFile object .