library/src/blockclass/subclasses/BP_ApplicationHelpGenerator.cc
// This method combines the checkThatAllRequiredParametersAreSet, checkThatAllMandatoryDependenciesAreMet,
// and the option_parser->optionLookup("--help") methods to see if the application is prepared and ready
// to run.
This method combines the checkThatAllRequiredParametersAreSet, checkThatAllMandatoryDependenciesAreMet,
and the option_parser->optionLookup("--help") methods to see if the application is prepared and ready
to run.
This method combines the checkThatAllRequiredParametersAreSet checkThatAllMandatoryDependenciesAreMet and the option_parser - > optionLookup ( " -- help " ) methods to see if the application is prepared and ready to run .
BP_ERROR_T BP_ApplicationHelpGenerator::finalApplicationErrorCheck()
{
	if(!this->clop)
		return ERR_FAILURE;
	if(this->checkThatAllRequiredParametersAreSet() != ERR_SUCCESS)
		return ERR_FAILURE;
	if(this->checkThatAllMandatoryDependenciesAreMet() != ERR_SUCCESS)
		return ERR_FAILURE;
	if(this->clop->optionLookup("--help"))
	if(this->clop->optionLookup("--help")->value_has_been_set_ok)
		return ERR_FAILURE;;
	return ERR_SUCCESS;
}
BP_ERROR_T BP_ApplicationHelpGenerator :: finalApplicationErrorCheck ( ) { if ( ! this -> clop ) return ERR_FAILURE ; if ( this -> checkThatAllRequiredParametersAreSet ( ) != ERR_SUCCESS ) return ERR_FAILURE ; if ( this -> checkThatAllMandatoryDependenciesAreMet ( ) != ERR_SUCCESS ) return ERR_FAILURE ; if ( this -> clop -> optionLookup ( " " ) ) if ( this -> clop -> optionLookup ( " " ) -> value_has_been_set_ok ) return ERR_FAILURE ; ; return ERR_SUCCESS ; }
This method combines the checkThatAllRequiredParametersAreSet, checkThatAllMandatoryDependenciesAreMet,
and the option_parser->optionLookup("--help") methods to see if the application is prepared and ready
to run.
This method combines the checkThatAllRequiredParametersAreSet checkThatAllMandatoryDependenciesAreMet and the option_parser - > optionLookup ( " -- help " ) methods to see if the application is prepared and ready to run .
// ensure we have a command line option parser // ensure that all required parameters have been set ok // within all the set options, ensure that dependencies are set // check to see that the --help option hasn't been set (if it's available // for the current program) // return indicating success (after all the checks have been passed)