Package pyffi :: Package formats :: Package egm :: Class EgmFormat
[hide private]
[frames] | no frames]

Class EgmFormat

source code

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

This class implements the EGM 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 EGM file.
  FileVersion
  Data
A class to contain the actual egm data.
  MorphRecord
  Header
  ShortRelativeVertex
  _MorphRecord
Uses the same formula as a morph in a tri file.

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 string into an integer.
source code
Class Variables [hide private]
  xml_file_name = 'egm.xml'
Override.
  xml_file_path = [None, '/usr/lib/python2.7/site-packages/pyffi...
Override.
  RE_FILENAME = re.compile(r'(?i)^.*\.egm$')
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_struct = [<class 'pyffi.formats.egm.ShortRelativeVertex'>,...

Inherited from object_models.xml.FileFormat: logger, xml_alias, xml_bit_struct, 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 string into an integer.

>>> EgmFormat.version_number('002')
2
>>> EgmFormat.version_number('XXX')
-1
Parameters:
  • version_str (str) - The version string.
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/egm']

xml_struct

Value:
[<class 'pyffi.formats.egm.ShortRelativeVertex'>,
 <class 'pyffi.formats.egm._MorphRecord'>,
 <class 'pyffi.formats.egm.Header'>]