Module VData :: Class VData
[hide private]
[frames] | no frames]

Class VData

source code

This class is in charge of VData extraction from a linear buffer. VData objects are returned as a Python table (list of rows).

Instance Methods [hide private]
 
__init__(self)
Constructor
source code
 
dataSpaceToColumns(self, columns_offset, table_rows, linear_buffer)
This method is a little workaround to speed up the unpack function, if we unpack byte streams row by row we will have to process different types of data.
source code
 
getColumn(self, column, num_rows, column_offset, column_entries, linear_buffer)
This method uses the format of a column to extract it from the buffer and processes a little formating; if the column has more than one entry theses entries are concatenated using the | character if the data type is float or double the function "fixFloatingPoint" is used to normalize the internal representation.
source code
 
Extract(self, node, linear_buffer, dump_format)
Extract a single VData object, the method returns the object as a Table.
source code
Method Details [hide private]

dataSpaceToColumns(self, columns_offset, table_rows, linear_buffer)

source code 

This method is a little workaround to speed up the unpack function, if we unpack byte streams row by row we will have to process different types of data. If we switch the data space as if the varying dimension was "column" we can unpack n elements of the same data type.

Extract(self, node, linear_buffer, dump_format)

source code 

Extract a single VData object, the method returns the object as a Table. The parameter 'node' has to be an ElemenTree node of a "Table" XML tag. This tag contains the necessary metadata to extract and reconstruct the VData object.