dbxTree.h
Doc
#include <oedbx/dbxCommon.h>

class AS_EXPORT DbxTree
{ public :
DbxTree(InStream ins, int4 address, int4 values);
~DbxTree();
 
int4 GetValue(int4 index) const;
 
void ShowResults(OutStream outs) const;
 
private :
void readValues(InStream ins, int4 parent, int4 address,
int4 position, int4 values);
// data
int4 Address;
int4 Values, *Array;
};

Description

DbxTree(InStream ins, int4 address, int4 values)

This constructor automatically reads in the whole tree. Normaly you have to use one of the tree pointers (file header (39),(3a) or (3b)) for address and the corresponding number of entries (file header (31),(32) or(33)) for values. If the tree stores another number of pointers, an exception is thrown.

int4 GetValue(int4 index)

Returns the value stored in the tree at position index. Possible values for index are 0,1,...,Values-1 .

void ShowResults(OutStream outs)

I used this function to log my results while I tried to decode the dbx file format.

void readValues(InStream ins, int4 parent, int4 address, int4 position, int4 values)

This function reads in the tree recursivly starting from the root node.


Home of OE dbx file format