### Class Argument - A representation of an argument to a COM method

## SYNOPSIS

    import win32com.makegw.makegwparse

    class Argument
      def BuildFromFile(self, file)
      def GetRawDeclaration(self)
      def HasAttribute(self, typ)
      def NeedStringConversion(self)
      def __init__(self, good_interface_names)
      regex regex = ...

## DESCRIPTION

This class contains information about a specific argument to a method. In addition, methods exist so that an argument knows how to convert itself to/from Python arguments.

### def BuildFromFile(self, file)

Parse and build my data from a file

Reads the next line in the file, and matches it as an argument description. If not a valid argument line, an error_not_found exception is raised.

### def HasAttribute(self, typ)

Determines if the argument has the specific attribute.

Argument attributes are specified in the header file, such as "[in][out][retval]" etc. You can pass a specific string (eg "out") to find if this attribute was specified for the argument

### def NeedStringConversion(self)

Determines if the argument requires a USES_CONVERSION hack macro for the argument

## SEE ALSO

win32com.makegw.makegwparse

Copyright © Greg Stein, Mark Hammond, Curt Hagenlocher and a few other contributors
All Rights Reserved
Comments to author:
Generated: Sun Apr 20 1997