qaengine/src/TaskDriver.cxx
//-------------------------------------------------------------------------------
// Sets hits file name and creates a hits table from the given hits file.
//-------------------------------------------------------------------------------
Sets hits file name and creates a hits table from the given hits file.
Sets hits file name and creates a hits table from the given hits file .
int TaskDriver::openHits(string fileName) {
	if(m_strHits==fileName) return 0;
	if(m_durtyHits && m_strHits.length()>0) {
		saveHits(m_strHits);
	    m_durtyHits = 0;
	}
    if(m_pHits) delete m_pHits;
    m_pHits= new HitsTable();
	if(m_pHits->load(fileName)!=0) {
		delete m_pHits;
		m_pHits = NULL;
		return -1;
	}
	m_strHits = fileName;
	return 0;
}
int TaskDriver :: openHits ( string fileName ) { if ( m_strHits == fileName ) return 0 ; if ( m_durtyHits && m_strHits . length ( ) > 0 ) { saveHits ( m_strHits ) ; m_durtyHits = 0 ; } if ( m_pHits ) delete m_pHits ; m_pHits = new HitsTable ( ) ; if ( m_pHits -> load ( fileName ) != 0 ) { delete m_pHits ; m_pHits = NULL ; return -1 ; } m_strHits = fileName ; return 0 ; }
Sets hits file name and creates a hits table from the given hits file.
Sets hits file name and creates a hits table from the given hits file .