Package pyffi :: Package formats :: Package egt :: Class EgtFormat
[hide private]
[frames] | no frames]

Class EgtFormat

source code

              object --+        
                       |        
object_models.FileFormat --+    
                           |    
object_models.xml.FileFormat --+
                               |
                              EgtFormat

This class implements the EGT format.
Nested Classes [hide private]
  int
Basic implementation of a 32-bit signed integer type.
  uint
Implementation of a 32-bit unsigned integer type.
  byte
Implementation of a 8-bit signed integer type.
  ubyte
Implementation of a 8-bit unsigned integer type.
  char
Implementation of an (unencoded) 8-bit character.
  short
Implementation of a 16-bit signed integer type.
  ushort
Implementation of a 16-bit unsigned integer type.
  float
Implementation of a 32-bit float.
  FileSignature
Basic type which implements the header of a EGT file.
  FileVersion
  Header
A class to contain the actual egt data.
  Data
A class to contain the actual egt data.
  Texture
  TextureFlags
  _Header

Inherited from object_models.xml.FileFormat: __metaclass__

Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from object_models.xml.FileFormat: vercondFilter

Inherited from object_models.FileFormat: name_attribute, name_class, name_parts, walk, walkData

Static Methods [hide private]
 
version_number(version_str)
Converts version segtng into an integer.
source code
Class Variables [hide private]
  xml_file_name = 'egt.xml'
Override.
  xml_file_path = [None, '/usr/lib/python2.7/site-packages/pyffi...
Override.
  RE_FILENAME = re.compile(r'(?i)^.*\.egt$')
Override this with a regular expression (the result of a re.compile call) for the file extension of the format you are implementing.
  games = {}
  versions = {}
  xml_bit_struct = [<class 'pyffi.formats.egt.TextureFlags'>]
  xml_struct = [<class 'pyffi.formats.egt.Texture'>, <class 'pyf...

Inherited from object_models.xml.FileFormat: logger, xml_alias, xml_enum

Inherited from object_models.FileFormat: ARCHIVE_CLASSES

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

version_number(version_str)
Static Method

source code 

Converts version segtng into an integer.

>>> EgtFormat.version_number('003')
3
>>> EgtFormat.version_number('XXX')
-1
Parameters:
  • version_str (str) - The version segtng.
Returns:
A version integer.
Overrides: object_models.FileFormat.version_number

Class Variable Details [hide private]

xml_file_path

Override.
Value:
[None, '/usr/lib/python2.7/site-packages/pyffi/formats/egt']

xml_struct

Value:
[<class 'pyffi.formats.egt.Texture'>,
 <class 'pyffi.formats.egt._Header'>]