library/src/blockclass/BP-BlockClass.cc
// used for setting results directly from result entries
used for setting results directly from result entries
used for setting results directly from result entries
BP_ERROR_T Block::setResultFromWebResultEntry(P_BP_WEB_RESULT_ENTRY web_result_entry)
{
	if(!web_result_entry)
	{
		return ERR_FAILURE;
	}
	this->web_result_id = web_result_entry->result_id;
	memset(&this->web_result_href, 0x00, sizeof(this->web_result_href));
	snprintf((char *) &this->web_result_href, sizeof(this->web_result_href)-1, "%s", web_result_entry->href);
	return ERR_SUCCESS;
}
BP_ERROR_T Block :: setResultFromWebResultEntry ( P_BP_WEB_RESULT_ENTRY web_result_entry ) { if ( ! web_result_entry ) { return ERR_FAILURE ; } this -> web_result_id = web_result_entry -> result_id ; memset ( & this -> web_result_href , 0x00 , sizeof ( this -> web_result_href ) ) ; snprintf ( ( char * ) & this -> web_result_href , sizeof ( this -> web_result_href ) - 1 , " " , web_result_entry -> href ) ; return ERR_SUCCESS ; }
used for setting results directly from result entries
used for setting results directly from result entries
// ensure we have an entry // set the result id // zero out the memory // copy in the href data // return indicating success