Package pyffi :: Package formats :: Package nif :: Class NifFormat :: Class Header
[hide private]
[frames] | no frames]

Class Header

source code

                  object --+                
                           |                
      utils.graph.DetailNode --+            
                               |            
          utils.graph.GlobalNode --+        
                                   |        
object_models.xml.struct_.StructBase --+    
                                       |    
                       NifFormat._Header --+
                                           |
                                          NifFormat.Header

Nested Classes [hide private]

Inherited from object_models.xml.struct_.StructBase: __metaclass__

Instance Methods [hide private]
bool
has_block_type(self, block_type)
Check if header has a particular block type.
source code

Inherited from object_models.xml.struct_.StructBase: __init__, __str__, deepcopy, fix_links, get_attribute, get_basic_attribute, get_detail_child_names, get_detail_child_nodes, get_global_child_nodes, get_global_display, get_hash, get_links, get_refs, get_size, get_strings, get_template_attribute, read, replace_global_node, set_attribute, set_basic_attribute, set_template_attribute, tree, write

Inherited from utils.graph.GlobalNode: get_global_child_edge_types, get_global_iterator

Inherited from utils.graph.DetailNode: get_detail_child_edge_types, get_detail_display, get_detail_iterator

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

Class Methods [hide private]

Inherited from object_models.xml.struct_.StructBase: get_games, get_versions

Class Variables [hide private]
  _attribute_list = [<pyffi.object_models.xml.StructAttribute ob...

Inherited from _Header (private): _attrs, _names

Inherited from object_models.xml.struct_.StructBase: arg

Properties [hide private]

Inherited from _Header: block_size, block_type_index, block_types, copyright, endian_type, export_info, header_string, max_string_length, num_block_types, num_blocks, num_strings, strings, unknown_int_2, unknown_int_3, user_version, user_version_2, version

Inherited from object: __class__

Method Details [hide private]

has_block_type(self, block_type)

source code 
Check if header has a particular block type.
Parameters:
  • block_type (L{NifFormat.NiObject}) - The block type.
Returns: bool
True if the header's list of block types has the given block type, or a subclass of it. False otherwise.
Raises:
  • ValueError - If number of block types is zero (only nif versions 10.0.1.0 and up store block types in header).

Class Variable Details [hide private]

_attribute_list

Value:
[<pyffi.object_models.xml.StructAttribute object at 0x2c20090>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c20110>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c20190>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c201d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c20210>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c20250>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c20310>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c20390>,
...