subsurface/tests
Berthold Stoeger 9c253ee6c5 core: introduce divelog structure
The parser API was very annoying, as a number of tables
to-be-filled were passed in as pointers. The goal of this
commit is to collect all these tables in a single struct.
This should make it (more or less) clear what is actually
written into the divelog files.

Moreover, it should now be rather easy to search for
instances, where the global logfile is accessed (and it
turns out that there are many!).

The divelog struct does not contain the tables as substructs,
but only collects pointers. The idea is that the "divelog.h"
file can be included without all the other files describing
the numerous tables.

To make it easier to use from C++ parts of the code, the
struct implements a constructor and a destructor. Sadly,
we can't use smart pointers, since the pointers are accessed
from C code. Therfore the constructor and destructor are
quite complex.

The whole commit is large, but was mostly an automatic
conversion.

One oddity of note: the divelog structure also contains
the "autogroup" flag, since that is saved in the divelog.
This actually fixes a bug: Before, when importing dives
from a different log, the autogroup flag was overwritten.
This was probably not intended and does not happen anymore.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2023-04-14 21:20:23 +02:00
..
.gitignore
CMakeLists.txt
testAirPressure.cpp core: introduce divelog structure 2023-04-14 21:20:23 +02:00
testAirPressure.h
testdivesiteduplication.cpp core: introduce divelog structure 2023-04-14 21:20:23 +02:00
testdivesiteduplication.h
testgitstorage.cpp core: introduce divelog structure 2023-04-14 21:20:23 +02:00
testgitstorage.h
testgpscoords.cpp Whitespace cleanup tests 2018-07-26 16:32:51 +03:00
testgpscoords.h
testhelper.cpp
testhelper.h Bluetooth: add helper to separate BT name and address 2018-10-12 08:22:44 -07:00
testmerge.cpp core: introduce divelog structure 2023-04-14 21:20:23 +02:00
testmerge.h Whitespace cleanup tests 2018-07-26 16:32:51 +03:00
testparse.cpp core: introduce divelog structure 2023-04-14 21:20:23 +02:00
testparse.h
testparseperformance.cpp core: introduce divelog structure 2023-04-14 21:20:23 +02:00
testparseperformance.h Add performance test case 2018-08-31 06:33:46 -07:00
testpicture.cpp core: introduce divelog structure 2023-04-14 21:20:23 +02:00
testpicture.h Whitespace cleanup tests 2018-07-26 16:32:51 +03:00
testplan.cpp
testplan.h
testplannershared.cpp Cleanup: rename plannerShared to PlannerShared 2020-02-04 02:17:52 +01:00
testplannershared.h
testprofile.cpp core: introduce divelog structure 2023-04-14 21:20:23 +02:00
testprofile.h cloudstorage: adapt tests 2021-04-19 12:51:01 -07:00
testqml.cpp
testqml.h
testqPrefCloudStorage.cpp cloudstorage: adapt tests 2021-04-19 12:51:01 -07:00
testqPrefCloudStorage.h
testqPrefDisplay.cpp desktop: remove user survey 2020-04-19 14:27:54 -07:00
testqPrefDisplay.h
testqPrefDiveComputer.cpp tests: correct testqPref*.cpp to use static qPref* functions. 2019-12-05 11:48:26 -08:00
testqPrefDiveComputer.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefDivePlanner.cpp
testqPrefDivePlanner.h
testqPrefEquipment.cpp tests: fix TestQPrefEquipment 2019-12-29 12:31:31 -08:00
testqPrefEquipment.h
testqPrefGeneral.cpp
testqPrefGeneral.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefGeocoding.cpp
testqPrefGeocoding.h
testqPrefLanguage.cpp tests: correct testqPref*.cpp to use static qPref* functions. 2019-12-05 11:48:26 -08:00
testqPrefLanguage.h
testqPrefLog.cpp
testqPrefLog.h Preferences: add some tests 2019-12-25 02:57:42 +09:00
testqPrefMedia.cpp Preferences: Create a test program for qPrefMedia 2019-12-25 02:57:42 +09:00
testqPrefMedia.h Preferences: Create a test program for qPrefMedia 2019-12-25 02:57:42 +09:00
testqPrefPartialPressureGas.cpp
testqPrefPartialPressureGas.h
testqPrefProxy.cpp tests: correct testqPref*.cpp to use static qPref* functions. 2019-12-05 11:48:26 -08:00
testqPrefProxy.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefTechnicalDetails.cpp Preferences UI: add dive log tab 2019-12-25 02:57:42 +09:00
testqPrefTechnicalDetails.h
testqPrefUnits.cpp
testqPrefUnits.h
testqPrefUpdateManager.cpp preferences: remove pointless member 2021-01-06 10:18:23 -08:00
testqPrefUpdateManager.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testrenumber.cpp core: introduce divelog structure 2023-04-14 21:20:23 +02:00
testrenumber.h
testtaglist.cpp
testtaglist.h
testunitconversion.cpp
testunitconversion.h
tst_qPrefCloudStorage.qml
tst_qPrefDisplay.qml
tst_qPrefDiveComputer.qml
tst_qPrefDivePlanner.qml tests: add signal test to call tst_qPref*qml 2018-09-11 17:25:00 -07:00
tst_qPrefGeneral.qml
tst_qPrefGeocoding.qml
tst_qPrefLanguage.qml
tst_qPrefPartialPressureGas.qml
tst_qPrefProxy.qml
tst_qPrefTechnicalDetails.qml tests: add signal test to call tst_qPref*qml 2018-09-11 17:25:00 -07:00
tst_qPrefUnits.qml
tst_qPrefUpdateManager.qml