library/src/blockclass/subclasses/BP_ApplicationHelpGenerator.cc
// Walks the entries in the local command line option parser (this->clop) and verifies
// that all required arguments have been set, if not, it calculates which arguments
// arent set correctly, and why.
Walks the entries in the local command line option parser (this->clop) and verifies
that all required arguments have been set, if not, it calculates which arguments
arent set correctly, and why.
Walks the entries in the local command line option parser ( this - > clop ) and verifies that all required arguments have been set if not it calculates which arguments arent set correctly and why .
BP_ERROR_T BP_ApplicationHelpGenerator::checkThatAllRequiredParametersAreSet()
{
	if(!this->clop)
		return ERR_FAILURE;
	if(!this->clop->tokens)
		return ERR_SUCCESS;
	if(this->clop->runPostParseTokenChecks() != ERR_SUCCESS)
	{
		return ERR_FAILURE;
	}
	return ERR_SUCCESS;
}
BP_ERROR_T BP_ApplicationHelpGenerator :: checkThatAllRequiredParametersAreSet ( ) { if ( ! this -> clop ) return ERR_FAILURE ; if ( ! this -> clop -> tokens ) return ERR_SUCCESS ; if ( this -> clop -> runPostParseTokenChecks ( ) != ERR_SUCCESS ) { return ERR_FAILURE ; } return ERR_SUCCESS ; }
Walks the entries in the local command line option parser (this->clop) and verifies
that all required arguments have been set, if not, it calculates which arguments
arent set correctly, and why.
Walks the entries in the local command line option parser ( this - > clop ) and verifies that all required arguments have been set if not it calculates which arguments arent set correctly and why .
// if we have no command line option parser, we can't verify // anything, so exit with failure code. // if we have no tokens, we can assumen that the developer has set // none, so exit with success code here. // the command line option parser has the ability to check for mandatory // entries; run that check here. // return indicating success