gala_clients/DIS_group/src/GroupApp.cxx
//
// Get the current name, and check its validity:
//
Get the current name, and check its validity.
Get the current name and check its validity .
char *GroupApp::SnatchResultName(bool search)
{
  Initialize(GroupApp::SnatchResultName);
  char *ret = NULL;
  char *name = GetResultName();
  switch (ValidName(name))
  {
    case NAME_VALID:   ret = name;
		       break;
    case NAME_INVALID: if (search) {
			 SetResultName(DefaultResultName());
			 ret = SnatchResultName(false);      
		       }
		       else {
	                 dis_message(NULL, MSG_ERROR, "M_SETS_BADNAME");
			 SetResultName(DefaultResultName());
		       }
		       break;
    default:           SetResultName(DefaultResultName());
		       break;
  }
  return ret;
}
char * GroupApp :: SnatchResultName ( bool search ) { Initialize ( GroupApp :: SnatchResultName ) ; char * ret = NULL ; char * name = GetResultName ( ) ; switch ( ValidName ( name ) ) { case NAME_VALID : ret = name ; break ; case NAME_INVALID : if ( search ) { SetResultName ( DefaultResultName ( ) ) ; ret = SnatchResultName ( false ) ; } else { dis_message ( NULL , MSG_ERROR , " " ) ; SetResultName ( DefaultResultName ( ) ) ; } break ; default : SetResultName ( DefaultResultName ( ) ) ; break ; } return ret ; }
Get the current name, and check its validity:
Get the current name and check its validity :
// Recurse