'Parse and build my data from a file
Reads the next line in the file, and matches it as a method
description.  If not a valid method line, an error_not_found exception
is raised.'

def BuildFromFile(self, file):

    line = file.readline()
    mo = self.regex.search(line)
    if (not mo):
        raise error_not_found
    self.name = mo.group(4)
    self.result = mo.group(2)
    if (self.result != 'HRESULT'):
        if (self.result == 'DWORD'):
            print 'Warning:    Old    style    interface    detected    -    compilation    errors    likely!'
        else:
            print ('Method    %s    -    Only    HRESULT    return    types    are    supported.' % self.name)
        print (' DCTB     Method    %s    %s(' % (self.result, self.name))
    while 1:
        arg = Argument(self.good_interface_names)
        try:
            arg.BuildFromFile(file)
            self.args.append(arg)
        except error_not_found:
            break
