parameters: ()
return_statement: return msg_start_table
docstring: Read MsgStart enumeration from ipc/ipc_message_utils.h.
  
    Determines the message type identifiers by reading.
    header file ipc/ipc_message_utils.h and looking for
    enum IPCMessageStart.  Assumes following code format in header file:
    enum IPCMessageStart {
       Type1MsgStart ...,
       Type2MsgStart,
    };
  
    Returns:
        A dictionary mapping StartName to enumeration value.
docstring_summary: Read MsgStart enumeration from ipc/ipc_message_utils.h.
docstring_tokens: Read MsgStart enumeration from ipc / ipc_message_utils . h .
function: def _GetMsgStartTable():
    """Read MsgStart enumeration from ipc/ipc_message_utils.h.
  
    Determines the message type identifiers by reading.
    header file ipc/ipc_message_utils.h and looking for
    enum IPCMessageStart.  Assumes following code format in header file:
    enum IPCMessageStart {
       Type1MsgStart ...,
       Type2MsgStart,
    };
  
    Returns:
        A dictionary mapping StartName to enumeration value.
    """
    ipc_message_file = _SourceDir() + '/ipc/ipc_message_utils.h'
    ipc_message_lines = _ReadLines(open(ipc_message_file))
    is_msg_start = False
    count = 0
    msg_start_table = dict()
    for line in ipc_message_lines:
      if is_msg_start:
        if line.strip() == '};':
          break
        msgstart_index = line.find('MsgStart')
        msg_type = line[:msgstart_index] + 'MsgStart'
        msg_start_table[msg_type.strip()] = count
        count+=1
      elif line.strip() == 'enum IPCMessageStart {':
        is_msg_start = True
  
    return msg_start_table
function_tokens: def _GetMsgStartTable ( ) : ipc_message_file = _SourceDir ( ) + '/ipc/ipc_message_utils.h' ipc_message_lines = _ReadLines ( open ( ipc_message_file ) ) is_msg_start = False count = 0 msg_start_table = dict ( ) for line in ipc_message_lines : if is_msg_start : if line . strip ( ) == '};' : break msgstart_index = line . find ( 'MsgStart' ) msg_type = line [ : msgstart_index ] + 'MsgStart' msg_start_table [ msg_type . strip ( ) ] = count count += 1 elif line . strip ( ) == 'enum IPCMessageStart {' : is_msg_start = True return msg_start_table