model_server/els/src/BrowserController.cxx
/* combine multiple define and uses commands into one */
combine multiple define and uses commands into one
combine multiple define and uses commands into one
void BrowserController::process_commands(const genArrCharPtr& cmds_in, genString*& cmds_out, 
					 genString& defines, ddSelector& defs_dd) const
{
  Initialize(BrowserController::process_commands);
  int index = -1;
  genString args;
  get_cmd_args(cmds_in, "defines", args, defs_dd);
  if (args.length() > 0)
    {
      defines = "defines";
      defines += args;
    }
  else
    defines = 0;
  ddSelector uses_dd;
  get_cmd_args(cmds_in, "uses", args, uses_dd);
  if (args.length() > 0)
    {
      cmds_out[++index] = "uses";
      cmds_out[index] += args;
    }
  for (int i = 0; i < cmds_in.size(); i++)
    {
      if (strncmp(*cmds_in[i], "defines", 7) != 0 &&
	  strncmp(*cmds_in[i], "uses", 4) != 0)
	{
	  *cmds_in[i], cmds_out[++index] = *cmds_in[i];
	}
    }
}
void BrowserController :: process_commands ( const genArrCharPtr & cmds_in , genString * & cmds_out , genString & defines , ddSelector & defs_dd ) const { Initialize ( BrowserController :: process_commands ) ; int index = -1 ; genString args ; get_cmd_args ( cmds_in , " " , args , defs_dd ) ; if ( args . length ( ) > 0 ) { defines = " " ; defines += args ; } else defines = 0 ; ddSelector uses_dd ; get_cmd_args ( cmds_in , " " , args , uses_dd ) ; if ( args . length ( ) > 0 ) { cmds_out [ ++ index ] = " " ; cmds_out [ index ] += args ; } for ( int i = 0 ; i < cmds_in . size ( ) ; i ++ ) { if ( strncmp ( * cmds_in [ i ] , " " , 7 ) != 0 && strncmp ( * cmds_in [ i ] , " " , 4 ) != 0 ) { * cmds_in [ i ] , cmds_out [ ++ index ] = * cmds_in [ i ] ; } } }
combine multiple define and uses commands into one
combine multiple define and uses commands into one