Page 1 of 1

Reading values from bin file

Posted: Thu May 27, 2010 12:09 pm
by pgu
I would like to read the data inside a binary file that I extracted out from a saved *.page file. This file was created after running the H/V module. The bin_data_100 file I 'm tring to open is according to the string in the first line of type "XUniqueYColorLines".

I believe that this file contains the ratios for each individual selected window.
Is this correct???

Would it be possible to give a brief description of the file format as was done for binary files of type:
IrregularGrid2D
in the post :
viewtopic.php?t=102

So that a program can be made to read it??
or the name of the source code file where such a file is written??

Thank you

Posted: Thu May 27, 2010 1:02 pm
by admin
Hi,

This binary file is created in file SciFigs/src/XUniqueYColorLines.cpp at line 290 by function XUniqueYColorLines::xml_writeBinaryData

There is a small header created in file QGpCoreTools/src/XMLClass.cpp at line 414 by function XMLClass::writeBinaryData (just the tag name)

XUniqueYColorLines::xml_setBinaryData() can be used to read this binary content.