LeMonADE-project / LeMonADE

Library for Monte Carlo Simulation applying the Bond Fluctuation Model
Other
3 stars 11 forks source link

.bfm file format suggestions #84

Open mxmlnkn opened 6 years ago

mxmlnkn commented 6 years ago

It might be good style to rework the .bfm file format. Problems I see:

When using full binary encoding for the file, it won't be humanly readable / checkable anymore, but it would be insanely easy to read e.g. the header by defining a struct. This would be similar to how the Bitmap file header can be read: fread(&bitmapFileHeader, sizeof(BITMAPFILEHEADER),1,filePtr);. Custom header lines are problematic to implement in binary as the name of the command is needed any way.

MartinWenge commented 5 years ago

some of these suggestions violate the idea of a human readable, still compressed file format. For Version 2.2. we might cherry pick some suggestions and omit the remaining ones