library/src/blockclass/subclasses/BP_CommandLineOptionParser.cc
// Runs a check on a token and determines if the token was set correctly or
// if it has become erroneous for some reason.  Results of examination are
// stored as strings which can be read in human readable format.
Runs a check on a token and determines if the token was set correctly or
if it has become erroneous for some reason.  Results of examination are
stored as strings which can be read in human readable format.
Runs a check on a token and determines if the token was set correctly or if it has become erroneous for some reason . Results of examination are stored as strings which can be read in human readable format .
BP_ERROR_T BP_CommandLineOptionParser::runTokenCheck(P_BP_COMMAND_LINE_PARSER_TOKENS token)
{
	if(!token)
		return ERR_FAILURE;
	if(token->token_required && !token->value_has_been_set_ok)
		return ERR_FAILURE;
	return ERR_SUCCESS;
}
BP_ERROR_T BP_CommandLineOptionParser :: runTokenCheck ( P_BP_COMMAND_LINE_PARSER_TOKENS token ) { if ( ! token ) return ERR_FAILURE ; if ( token -> token_required && ! token -> value_has_been_set_ok ) return ERR_FAILURE ; return ERR_SUCCESS ; }
Runs a check on a token and determines if the token was set correctly or
if it has become erroneous for some reason.
Runs a check on a token and determines if the token was set correctly or if it has become erroneous for some reason .
// ensure we have a token // check if the token is required.  If it is required, it must be set ok // return indicating success