library/src/blockclass/BP-BlockClass.cc
// Adds an expression which will be used to match command output to specific data.
Adds an expression which will be used to match command output to specific data.
Adds an expression which will be used to match command output to specific data .
BP_ERROR_T Block::ccAddInformationExtractionPCRE(char *info_expression)
{
	if(!this->cc_session)
		return ERR_FAILURE;
	if(!info_expression)
	{
		return ERR_FAILURE;
	}
	if(!BP_CCAddInformationExtractionRegexpString(this->cc_session, info_expression) == ERR_FAILURE)
	{
		return ERR_FAILURE;
	}
	return ERR_SUCCESS;
}
BP_ERROR_T Block :: ccAddInformationExtractionPCRE ( char * info_expression ) { if ( ! this -> cc_session ) return ERR_FAILURE ; if ( ! info_expression ) { return ERR_FAILURE ; } if ( ! BP_CCAddInformationExtractionRegexpString ( this -> cc_session , info_expression ) == ERR_FAILURE ) { return ERR_FAILURE ; } return ERR_SUCCESS ; }
Adds an expression which will be used to match command output to specific data.
Adds an expression which will be used to match command output to specific data .
// requires a valid cc session // check for an info expression // add a premature exit string // return indicating success