library/src/blockclass/BP-BlockClass.cc
// Adds a premature exit pcre to the command.  This allows us to monitor output for certain strings
// and exit upon instance.
Adds a premature exit pcre to the command.  This allows us to monitor output for certain strings
and exit upon instance.
Adds a premature exit pcre to the command . This allows us to monitor output for certain strings and exit upon instance .
BP_ERROR_T Block::ccAddPrematureExitPCRE(char *exit_expression)
{
	if(!this->cc_session)
		return ERR_FAILURE;
	if(!exit_expression)
	{
		return ERR_FAILURE;
	}
	if(!BP_CCAddPrematureExitTestString(this->cc_session, exit_expression) == ERR_FAILURE)
	{
		return ERR_FAILURE;
	}
	return ERR_SUCCESS;
}
BP_ERROR_T Block :: ccAddPrematureExitPCRE ( char * exit_expression ) { if ( ! this -> cc_session ) return ERR_FAILURE ; if ( ! exit_expression ) { return ERR_FAILURE ; } if ( ! BP_CCAddPrematureExitTestString ( this -> cc_session , exit_expression ) == ERR_FAILURE ) { return ERR_FAILURE ; } return ERR_SUCCESS ; }
Adds a premature exit pcre to the command.
Adds a premature exit pcre to the command .
// requires a valid cc session // check for an exit expression // add a premature exit string // return indicating success