Package pyffi :: Package formats :: Package bsa :: Class BsaFormat :: Class FileVersion
[hide private]
[frames] | no frames]

Class FileVersion

source code

                         object --+                
                                  |                
             utils.graph.DetailNode --+            
                                      |            
      object_models.xml.basic.BasicBase --+        
                                          |        
                         object --+       |        
                                  |       |        
object_models.editable.EditableBase --+   |        
                                      |   |        
 object_models.editable.EditableSpinBox --+        
                                          |        
                   object_models.common.Int --+    
                                              |    
                      object_models.common.UInt --+
                                                  |
                                                 BsaFormat.FileVersion

Basic type which implements the header of a BSA file.
Instance Methods [hide private]
 
__init__(self, **kwargs)
Initialize the integer.
source code
 
read(self, stream, data)
Read header string from stream and check it.
source code
 
write(self, stream, data)
Write the header string to stream.
source code
 
get_size(self, data=None)
Return number of bytes the header string occupies in a file.
source code

Inherited from object_models.common.Int: __str__, get_editor_maximum, get_editor_minimum, get_hash, get_value, set_value

Inherited from object_models.xml.basic.BasicBase: fix_links, get_detail_display, get_editor_value, get_links, get_refs, get_strings, replace_global_node, set_editor_value

Inherited from utils.graph.DetailNode: get_detail_child_edge_types, get_detail_child_names, get_detail_child_nodes, get_detail_iterator

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

Class Variables [hide private]

Inherited from object_models.common.UInt (private): _max, _min, _size, _struct

Inherited from object_models.xml.basic.BasicBase: arg

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **kwargs)
(Constructor)

source code 
Initialize the integer.
Parameters:
  • template - type used as template
  • argument - argument used to initialize the instance (see the Struct class).
  • parent - The parent of this instance, that is, the instance this instance is an attribute of.
Overrides: object.__init__
(inherited documentation)

read(self, stream, data)

source code 
Read header string from stream and check it.
Parameters:
  • stream (file) - The stream to read from.
Overrides: object_models.xml.basic.BasicBase.read

write(self, stream, data)

source code 
Write the header string to stream.
Parameters:
  • stream (file) - The stream to write to.
Overrides: object_models.xml.basic.BasicBase.write

get_size(self, data=None)

source code 
Return number of bytes the header string occupies in a file.
Returns:
Number of bytes.
Overrides: object_models.xml.basic.BasicBase.get_size