subsurface/tests
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
..
.gitignore
CMakeLists.txt Add tests for formatDiveGasString 2023-10-18 21:34:56 +13:00
testAirPressure.cpp units: replace SURFACE_PRESSURE by 1_atm 2024-09-11 10:23:07 +02:00
testAirPressure.h
testdivesiteduplication.cpp preferences: use std::string in struct preferences 2024-08-13 19:28:30 +02:00
testdivesiteduplication.h
testformatDiveGasString.cpp core: introduce a few user-defined literals for unit types 2024-09-11 10:23:07 +02:00
testformatDiveGasString.h Add another test for formatDiveGasString 2023-10-18 21:34:56 +13:00
testgitstorage.cpp core: remove get_dive() function 2024-08-13 19:28:30 +02:00
testgitstorage.h
testgpscoords.cpp
testgpscoords.h
testhelper.cpp import: turn C-string in device_data_t into std::strings 2024-08-13 19:28:30 +02:00
testhelper.h
testmerge.cpp core: move process_import_dives() and related functions to divelog 2024-08-13 19:28:30 +02:00
testmerge.h
testparse.cpp Slight refactor of DAN parse code 2025-01-04 00:12:14 +13:00
testparse.h
testparseperformance.cpp preferences: use std::string in struct preferences 2024-08-13 19:28:30 +02:00
testparseperformance.h
testpicture.cpp core: remove get_dive() function 2024-08-13 19:28:30 +02:00
testpicture.h
testplan.cpp planner: make argument to plan_add_segment() depth_t 2024-12-17 13:58:27 +13:00
testplan.h Fix invalid bailout gas choice when planning a CCR dive. 2023-02-17 10:49:24 +01:00
testplannershared.cpp
testplannershared.h
testprofile.cpp parser: keep divelist sorted 2024-08-13 19:28:30 +02:00
testprofile.h cloudstorage: adapt tests 2021-04-19 12:51:01 -07:00
testqml.cpp
testqml.h
testqPrefCloudStorage.cpp preferences: use std::string in struct preferences 2024-08-13 19:28:30 +02:00
testqPrefCloudStorage.h
testqPrefDisplay.cpp preferences: use std::string in struct preferences 2024-08-13 19:28:30 +02:00
testqPrefDisplay.h
testqPrefDiveComputer.cpp preferences: use std::string in struct preferences 2024-08-13 19:28:30 +02:00
testqPrefDiveComputer.h
testqPrefDivePlanner.cpp
testqPrefDivePlanner.h
testqPrefEquipment.cpp preferences: use std::string in struct preferences 2024-08-13 19:28:30 +02:00
testqPrefEquipment.h
testqPrefGeneral.cpp
testqPrefGeneral.h
testqPrefGeocoding.cpp
testqPrefGeocoding.h
testqPrefLanguage.cpp preferences: use std::string in struct preferences 2024-08-13 19:28:30 +02:00
testqPrefLanguage.h
testqPrefLog.cpp preferences: use std::string in struct preferences 2024-08-13 19:28:30 +02:00
testqPrefLog.h
testqPrefMedia.cpp preferences: use std::string in struct preferences 2024-08-13 19:28:30 +02:00
testqPrefMedia.h
testqPrefPartialPressureGas.cpp
testqPrefPartialPressureGas.h
testqPrefProxy.cpp preferences: use std::string in struct preferences 2024-08-13 19:28:30 +02:00
testqPrefProxy.h
testqPrefTechnicalDetails.cpp Desktop: Add a Button to Hide the Infobox in the Dive Profile. 2023-06-25 14:40:23 +02:00
testqPrefTechnicalDetails.h
testqPrefUnits.cpp
testqPrefUnits.h
testqPrefUpdateManager.cpp preferences: use std::string in struct preferences 2024-08-13 19:28:30 +02:00
testqPrefUpdateManager.h
testrenumber.cpp core: remove get_dive() function 2024-08-13 19:28:30 +02:00
testrenumber.h
testtaglist.cpp core: port tag-list to C++ 2024-08-13 19:28:30 +02:00
testtaglist.h core: port tag-list to C++ 2024-08-13 19:28:30 +02:00
testunitconversion.cpp core: introduce a few user-defined literals for unit types 2024-09-11 10:23:07 +02:00
testunitconversion.h
tst_qPrefCloudStorage.qml cloudstorage: some cleanup of cloud url handling 2021-04-19 12:51:01 -07:00
tst_qPrefDisplay.qml
tst_qPrefDiveComputer.qml
tst_qPrefDivePlanner.qml
tst_qPrefGeneral.qml
tst_qPrefGeocoding.qml
tst_qPrefLanguage.qml
tst_qPrefPartialPressureGas.qml
tst_qPrefProxy.qml
tst_qPrefTechnicalDetails.qml Planner: Improve Gas Handling in CCR Mode. 2024-08-26 12:36:31 +12:00
tst_qPrefUnits.qml
tst_qPrefUpdateManager.qml