parameters: (histogram_enum_name, source_enum_path,
                          start_marker, end_marker)
docstring: Reads a C++ enum from a .h file and updates histograms.xml to match.
  
    Args:
        histogram_enum_name: The name of the XML <enum> attribute to update.
        source_enum_path: A unix-style path, relative to src/, giving
            the C++ header file from which to read the enum.
        start_marker: A regular expression that matches the start of the C++ enum.
        end_marker: A regular expression that matches the end of the C++ enum.
docstring_summary: Reads a C++ enum from a .h file and updates histograms.xml to match.
docstring_tokens: Reads a C ++ enum from a . h file and updates histograms . xml to match .
function: def UpdateHistogramEnum(histogram_enum_name, source_enum_path,
                          start_marker, end_marker):
    """Reads a C++ enum from a .h file and updates histograms.xml to match.
  
    Args:
        histogram_enum_name: The name of the XML <enum> attribute to update.
        source_enum_path: A unix-style path, relative to src/, giving
            the C++ header file from which to read the enum.
        start_marker: A regular expression that matches the start of the C++ enum.
        end_marker: A regular expression that matches the end of the C++ enum.
    """
  
    Log('Reading histogram enum definition from "{0}".'.format(source_enum_path))
    source_enum_values = ReadHistogramValues(source_enum_path, start_marker,
                                             end_marker)
  
    UpdateHistogramFromDict(histogram_enum_name, source_enum_values,
        source_enum_path)
function_tokens: def UpdateHistogramEnum ( histogram_enum_name , source_enum_path , start_marker , end_marker ) : Log ( 'Reading histogram enum definition from "{0}".' . format ( source_enum_path ) ) source_enum_values = ReadHistogramValues ( source_enum_path , start_marker , end_marker ) UpdateHistogramFromDict ( histogram_enum_name , source_enum_values , source_enum_path )