library/src/blockclass/BP-BlockClass.cc
// Initializes the web assessment structure with default values
Initializes the web assessment structure with default values
Initializes the web assessment structure with default values
int Block::CreateWebAssessment(char *targetURL, P_BP_HTTP_SESSION httpSession, P_BP_HTML_FULL_EXTRACTION htmlExtraction, bool siteLock)
{
	if (!targetURL || !httpSession || !htmlExtraction)
		return ERR_FAILURE;
	webAssessment = BP_CreateWebAssessment(targetURL, httpSession, htmlExtraction, true, true, siteLock);
	if (!webAssessment)
		return ERR_FAILURE;
	this->webAssessment = webAssessment;
	webAssessment->maxAnchorPossibilities = 65535;
	webAssessment->maxFormPossibilities   = 65535;
	return ERR_SUCCESS;
}
int Block :: CreateWebAssessment ( char * targetURL , P_BP_HTTP_SESSION httpSession , P_BP_HTML_FULL_EXTRACTION htmlExtraction , bool siteLock ) { if ( ! targetURL || ! httpSession || ! htmlExtraction ) return ERR_FAILURE ; webAssessment = BP_CreateWebAssessment ( targetURL , httpSession , htmlExtraction , true , true , siteLock ) ; if ( ! webAssessment ) return ERR_FAILURE ; this -> webAssessment = webAssessment ; webAssessment -> maxAnchorPossibilities = 65535 ; webAssessment -> maxFormPossibilities = 65535 ; return ERR_SUCCESS ; }
Initializes the web assessment structure with default values
Initializes the web assessment structure with default values
// Null checks // Create a new assessment with SQL tables (large) // set the webassessment pointer // Set arbitrary default possibility values (number of checks will not exceed this) // return success