library/src/blockclass/BP-BlockClass.cc
BP_ERROR_T Block::ccAddInformationExtractionPCRE(char *info_expression)
{

	// requires a valid cc session
	if(!this->cc_session)
		return ERR_FAILURE;

	// check for an info expression
	if(!info_expression)
	{
		return ERR_FAILURE;
	}

	// add a premature exit string
	if(!BP_CCAddInformationExtractionRegexpString(this->cc_session, info_expression) == ERR_FAILURE)
	{
		return ERR_FAILURE;
	}

	// return indicating success
	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.
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