IMHOTEP Framework
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
FileBlock.cs
1 using System;
2 
3 namespace BlenderMeshReader
4 {
5  class FileBlock
6  {
7  //blender file doc from http://www.atmind.nl/blender/mystery_ot_blend.html
8  public string Code { get; private set; } //Identifier of the file-block
9  public int Size { get; private set; } //Total length of the data after the file-block-header
10  public int SDNAIndex { get; private set; } //Index of the SDNA structure
11  public int Count { get; private set; } //Number of structure located in this file-block
12  public long StartAddess { get; private set; } //Start address of the blog
13  public ulong OldAddess { get; private set; } //Start address of the blog
14 
15 
16  public FileBlock(string code, int size, int sDNAIndex, int count, long starAddress, ulong oldAdress)
17  {
18  this.Code = code;
19  this.Size = size;
20  this.SDNAIndex = sDNAIndex;
21  this.Count = count;
22  this.StartAddess = starAddress;
23  this.OldAddess = oldAdress; //Is actually a unique identifier
24  }
25 
26  public override string ToString()
27  {
28  return "File-block:" + Environment.NewLine + "Code: " + Code +
29  Environment.NewLine + "Size: " + Size +
30  Environment.NewLine + "SDNA index: " + SDNAIndex +
31  Environment.NewLine + "Count: " + Count +
32  Environment.NewLine + "Start address: " + StartAddess +
33  Environment.NewLine + "Old address: " + OldAddess +
34  Environment.NewLine;
35  }
36 
37  }
38 }