In the upcoming version 1.1.2, add headers to the NDAT and the cache file, which will contain information about the version of the file format.
Analysis:
The NDAT-header shall contain the following information:
- NumeRe version
- Time stamp
- 1x1 dummy data to prevent older versions from failing. The column headline of the dummy data shall contain the warning that the used version of NumeRe is too old
- File version (i.e. 2.0+, minor version changes shall be downwards compatible)
- Space for a comment
- 3 unused fields for further changes (encode them in length, data)
- Data type (for providing the possibility to save string and mixed data)
- Actual dimensions of the data
A reasonable approach seems to be to encapsulate the NDAT functionalities into a own class, which will be instantiated by the other classes as needed. Probably it would be also reasonable to add the other file formats as well and create a NumeRe::File class. Regarding the cache file format: it's probably a good situation to change that file completely.
Implementation:
- Implementation: The implementation was done as proposed by the analysis. However, it was left on the corresponding branch, because it won't work with the current version number
- Revision: [r568]
- Implementation test: Instances of each file were read and written without any deviation.
Documentation:
- [x] ChangesLog updated
- [x] Code changes commented
- Documentation articles:
- [ ] corresponding documentation articles updated
- [ ] new documentation articles created
- [x] not needed
- Language files:
- [x] corresponding language files updated
- [ ] not needed
Tests:
Functionality was tested manually. Deviations were fixed.
Diff:
Diff:
Diff:
Diff:
Diff:
Diff:
Related
Commit: [r568]
Diff: