Package pyffi :: Module object_models :: Class MetaFileFormat
[hide private]
[frames] | no frames]

Type MetaFileFormat

source code

object --+    
         |    
      type --+
             |
            MetaFileFormat
Known Subclasses:

This metaclass is an abstract base class for transforming a file format description into classes which can be directly used to manipulate files in this format.

A file format is implemented as a particular class (a subclass of FileFormat) with class members corresponding to different (bit)struct types, enum types, basic types, and aliases.

Instance Methods [hide private]

Inherited from type: __call__, __delattr__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __init__, __instancecheck__, __le__, __lt__, __ne__, __new__, __repr__, __setattr__, __subclasscheck__, __subclasses__, mro

Inherited from object: __format__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
openfile(filename, filepaths=None)
Find filename in given filepaths, and open it.
source code
Properties [hide private]

Inherited from type: __abstractmethods__, __base__, __bases__, __basicsize__, __dictoffset__, __flags__, __itemsize__, __mro__, __name__, __weakrefoffset__

Inherited from object: __class__

Method Details [hide private]

openfile(filename, filepaths=None)
Static Method

source code 
Find filename in given filepaths, and open it. Raises IOError if file cannot be opened.
Parameters:
  • filename (str) - The file to open.
  • filepaths (list of strs) - List of paths where to look for the file.