library/src/blockclass/BP-BlockClass.cc
// save class this->yahoo_session results to database (requires above table installed on current database)
save class this->yahoo_session results to database (requires above table installed on current database)
save class this - > yahoo_session results to database ( requires above table installed on current database )
BP_ERROR_T Block::saveYahooResults()
{
	if (!this->yahoo_session)
		return ERR_FAILURE;
	if (!this->mysqlSession)
		return ERR_FAILURE;
	size_t i = 0;
	for (i; i < this->yahoo_session->url_count; i++)
	{
		if (!this->yahoo_session->extracted_urls[i])
			continue;
		this->insertNewResult(BP_DB_TARGET_RESULT_TYPE_YAHOO, this->yahoo_session->extracted_urls[i], 0, 0);
	}
	return ERR_SUCCESS;
}
BP_ERROR_T Block :: saveYahooResults ( ) { if ( ! this -> yahoo_session ) return ERR_FAILURE ; if ( ! this -> mysqlSession ) return ERR_FAILURE ; size_t i = 0 ; for ( i ; i < this -> yahoo_session -> url_count ; i ++ ) { if ( ! this -> yahoo_session -> extracted_urls [ i ] ) continue ; this -> insertNewResult ( BP_DB_TARGET_RESULT_TYPE_YAHOO , this -> yahoo_session -> extracted_urls [ i ] , 0 , 0 ) ; } return ERR_SUCCESS ; }
save class this->yahoo_session results to database (requires above table installed on current database)
save class this - > yahoo_session results to database ( requires above table installed on current database )
// require valid mysql session // Note:  Don't enter critical section.  Insert routine has it's own locks. // loop index // ensure we have a valid extracted parameter // insert new result // return indicating success