model_server/els/src/BrowserData.cxx
/* all categories should be defined on one line with the following format:
   <ws>"Category name"<ws>"Access command"<ws><ddKind> */
all categories should be defined on one line with the following format:
"Category name""Access command"
all categories should be defined on one line with the following format : " Category name " " Access command "
bool BrowserData::read_category_section(FILE* input)
{
  Initialize(BrowserData::read_category_section);
    char buf[MAXBUF];
    while(get_next_line(input, buf, m_LineNum))
    {
      char name[MAXBUF];
      char cmd[MAXBUF];
      int kind;
      char* next = extract_str(buf, '"', '"', name);
      if (next == NULL)
	{
	  msg("ERROR: $1 Line $2: Syntax error") << m_FileName << eoarg << m_LineNum << eom;
	  continue;
	}
      next = extract_str(next, '"', '"', cmd);
      if (next == NULL)
	{
	  msg("ERROR: $1 Line $2: Access command for \'$3\' is not specified") << m_FileName << eoarg << m_LineNum << eoarg << name << eom;
	  continue;
	}
      char action_cmd[MAXBUF];
      char* action_cmd_ptr = NULL;
      next = extract_num(next, kind);
      if (next == NULL || kind == -1)
	{
	  kind = NUM_OF_DDS;
	}
      else
	{
	  next = extract_str(next, '"', '"', action_cmd);
	  if (next)
	    action_cmd_ptr = action_cmd;
	}
      add_category(name, cmd, kind, action_cmd_ptr);
    }
    return true;
}
bool BrowserData :: read_category_section ( FILE * input ) { Initialize ( BrowserData :: read_category_section ) ; char buf [ MAXBUF ] ; while ( get_next_line ( input , buf , m_LineNum ) ) { char name [ MAXBUF ] ; char cmd [ MAXBUF ] ; int kind ; char * next = extract_str ( buf , ' ' , ' ' , name ) ; if ( next == NULL ) { msg ( " " ) << m_FileName << eoarg << m_LineNum << eom ; continue ; } next = extract_str ( next , ' ' , ' ' , cmd ) ; if ( next == NULL ) { msg ( " \' \' " ) << m_FileName << eoarg << m_LineNum << eoarg << name << eom ; continue ; } char action_cmd [ MAXBUF ] ; char * action_cmd_ptr = NULL ; next = extract_num ( next , kind ) ; if ( next == NULL || kind == -1 ) { kind = NUM_OF_DDS ; } else { next = extract_str ( next , ' ' , ' ' , action_cmd ) ; if ( next ) action_cmd_ptr = action_cmd ; } add_category ( name , cmd , kind , action_cmd_ptr ) ; } return true ; }
all categories should be defined on one line with the following format:
<ws>"Category name"<ws>"Access command"<ws><ddKind>
all categories should be defined on one line with the following format : <ws > " Category name " <ws > " Access command " <ws > <ddKind >
//assign some not existing ddKind value. 