parameters: (header_file, path, output_handler, output_dir, output_format, indent)
docstring: Get types information from header file and writes output in chosen
      format to file to output directory.
  
      Path to header set to functions is relative path from script's input path.
docstring_summary: Get types information from header file and writes output in chosen
      format to file to output directory.
docstring_tokens: Get types information from header file and writes output in chosen format to file to output directory .
function: def parse_header(header_file, path, output_handler, output_dir, output_format, indent):
      """Get types information from header file and writes output in chosen
      format to file to output directory.
  
      Path to header set to functions is relative path from script's input path.
      """
      logging.info('Reading file: {}'.format(header_file))
      content = read_text_file(header_file)
      if os.path.isfile(path):
          relative_path = os.path.basename(path)
      else:
          relative_path = os.path.relpath(header_file, path)
  
      functions, types, structs, unions, enums = get_types_info_from_text(
          relative_path, content, output_format)
  
      out_f = get_output_file(header_file, path, output_format, output_dir)
      with open(out_f, 'w') as output_file:
          output_handler(
              output_file, functions, types, structs, unions, enums, indent
          )
function_tokens: def parse_header ( header_file , path , output_handler , output_dir , output_format , indent ) : logging . info ( 'Reading file: {}' . format ( header_file ) ) content = read_text_file ( header_file ) if os . path . isfile ( path ) : relative_path = os . path . basename ( path ) else : relative_path = os . path . relpath ( header_file , path ) functions , types , structs , unions , enums = get_types_info_from_text ( relative_path , content , output_format ) out_f = get_output_file ( header_file , path , output_format , output_dir ) with open ( out_f , 'w' ) as output_file : output_handler ( output_file , functions , types , structs , unions , enums , indent )