Back to index

enigmail  1.4.3
Public Member Functions | Public Attributes | Static Public Attributes
xpidl.Include Class Reference

List of all members.

Public Member Functions

def __init__
def __str__
def resolve

Public Attributes

 filename
 location
 IDL

Static Public Attributes

string kind = 'include'

Detailed Description

Definition at line 262 of file xpidl.py.


Constructor & Destructor Documentation

def xpidl.Include.__init__ (   self,
  filename,
  location 
)

Definition at line 265 of file xpidl.py.

00265 
00266     def __init__(self, filename, location):
00267         self.filename = filename
00268         self.location = location


Member Function Documentation

def xpidl.Include.__str__ (   self)

Definition at line 269 of file xpidl.py.

00269 
00270     def __str__(self):
00271         return "".join(["include '%s'\n" % self.filename])

def xpidl.Include.resolve (   self,
  parent 
)

Definition at line 272 of file xpidl.py.

00272 
00273     def resolve(self, parent):
00274         def incfiles():
00275             yield self.filename
00276             for dir in parent.incdirs:
00277                 yield os.path.join(dir, self.filename)
00278 
00279         for file in incfiles():
00280             if not os.path.exists(file): continue
00281 
00282             self.IDL = parent.parser.parse(open(file).read(), filename=file)
00283             self.IDL.resolve(parent.incdirs, parent.parser)
00284             for type in self.IDL.getNames():
00285                 parent.setName(type)
00286             parent.deps.extend(self.IDL.deps)
00287             return
00288 
00289         raise IDLError("File '%s' not found" % self.filename, self.location)


Member Data Documentation

Definition at line 266 of file xpidl.py.

Definition at line 281 of file xpidl.py.

string xpidl.Include.kind = 'include' [static]

Definition at line 263 of file xpidl.py.

Definition at line 267 of file xpidl.py.


The documentation for this class was generated from the following file: