subsurface/dives
Morten Borup Petersen d59eb9bdfa Slight refactor of DAN parse code
Mostly NFC; this commit is mainly to get familiar with the codebase and to meet
the people who will review these changes.

I hope to make some changes to the DAN parsing code to eventually extract more
metainfo from my aqualung divecomputer's `.zxu` formatted logs. To do so, and
for me to be able to work on this efficiently, I've refactored the DAN parsing
code using a bit more modern C++-style, as well as being more true-to-spec wrt.
the (...ancient) DAN file format documentation that i could dig up... hopefully
that's an alright tradeoff for the project.

This more true-to-spec parsing also fixed a bug with the number being parsed
from the incorrect index in the ZDH vector (or, atleast i consider it a bug -
the "Export sequence" number was being used as the dive number, instead of the
"Internal Dive Sequence" number. The latter, described in the spec as: `The
sequence number assigned to the dive by the recording computer`).

Also contains some unrelated formatting changes; i tried to keep these minimal
(i presume these files haven't been touched in a while by `clang-format`).

Signed-off-by: Morten Borup Petersen <morten_bp@live.dk>
2025-01-04 00:12:14 +13:00
..
images
abitofeverything.ssrf
Demo_SmartTrak.slg
Dive_2013-02-02-1614.xml
DL7.xml
DL7.zxu Slight refactor of DAN parse code 2025-01-04 00:12:14 +13:00
Example.log
exportprofilereference.csv
exportprofilereferenceVPMB.csv
garmin_2023-08-17-08-51-59.fit
garmin_2023-10-21-12-13-38.fit
gps-import.gpx
gps-import.xml
mergedVyperOstc.xml
ostc.xml
ostc_00087_04-05-2014_043m_032min.dive
ostc_00173_17-08-2013_027m_043min.dive
Poseidon_MkVILog.csv
Poseidon_MkVILog.txt
sac-test.xml
SampleDivesV2.ssrf
tank_pressure.xml
Test.csv
test0.xml
test0b.xml
test1.xml
test2.xml
test3.xml
test4.xml
test5.xml
test6.xml
test7.xml
test8.xml
test9.xml
test9a.xml
test10.xml
test11.xml
test12.xml
test13.xml
test14.xml
test15.xml
test16.xml
test17.xml
test18.xml
test19.xml
test20.xml
test21.xml
test22.xml
test23.xml
test24.xml
test25.xml
test26.xml
test27.xml
test28.xml
test29.xml
test30.xml
test31.xml
test32.xml
test33.xml
test34.xml
test35.xml
test36.xml
test38.xml
test40-42.xml
test40.xml
test41.csv
test42.xml
test43.xml
test44.xml
test47+48.xml
test47.xml
test47b.xml
test47c.xml
test48+47.xml
test48.xml
test50.xml
test51.xml
TestAPDLogViewer.csv
TestAtmPress.xml
TestComma.csv
TestDiveDivelogsDE.DLD
TestDiveDivelogsDE.udcf
TestDiveDivelogsDE.xml
TestDiveDivingLog5.08.udcf
TestDiveDivingLog5.08.uddf
TestDiveDivingLog5.08allimperial.xml
TestDiveDivingLog5.08allmetric.xml
TestDiveDivingLog5.08allmetric.zip
TestDiveDM3.SDE
TestDiveDM4.db
TestDiveDM4.xml
TestDiveDM5.db
TestDiveDM5.xml
TestDiveJDiveLog.jlb
TestDiveSeabearH3_0002SBDT.CSV
TestDiveSeabearH3_0003SBDT.CSV
TestDiveSeabearH3_0004SBDT.CSV
TestDiveSeabearH3_0005SBDT.CSV
TestDiveSeabearHUDC.csv
TestDiveSeabearHUDC.xml
TestDiveSeabearNewFormat.xml
TestDiveSeabearT1_0001SBDT.CSV
TestDiveSeabearT1_0002SBDT.CSV
TestDiveSeabearT1_0003SBDT.CSV
TestDiveSeabearT1_0004SBDT.CSV
TestDiveSeabearT1_0005SBDT.CSV
TestDiveSeacSync.db
TestDivingLog4.1.1.sql
testsensormove.xml
TestSensusSingle.csv
TestXP5_de.csv
TwoTimesTwo.ssrf
vyper.xml