subsurface/commands
Berthold Stoeger ae81b42fe2 core: introduce a few user-defined literals for unit types
Thise makes initialization of unit types more palatable.

For example:

    surface.time = sample.time - duration_t { .seconds = 20 };
=>  surface.time = sample.time - 20_sec;

    delta_depth.mm = feet_to_mm(1.0); // 1ft
=>  delta_depth = 1_ft;

    get_cylinderid_at_time(..., { .seconds = 20 * 60 + 1 }));
=>  get_cylinderid_at_time(..., 20_min + 1_sec));

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-09-11 10:23:07 +02:00
..
CMakeLists.txt
command.cpp code cleanup: use std::move() to potentially void copies 2024-08-18 16:26:31 +02:00
command.h fix copy/paste of dive-site 2024-08-17 23:34:16 +12:00
command_base.cpp core: turn C dive-table into an owning table 2024-08-13 19:28:30 +02:00
command_base.h core: fix undo of dive merging 2024-09-03 18:20:48 +12:00
command_device.cpp core: remove device C access code 2024-08-13 19:28:30 +02:00
command_device.h undo/device: adjust device management infrastructure 2021-08-18 13:22:02 -07:00
command_divelist.cpp core: introduce a few user-defined literals for unit types 2024-09-11 10:23:07 +02:00
command_divelist.h core: fix undo of dive merging 2024-09-03 18:20:48 +12:00
command_divesite.cpp core: include divesite table directly in divelog 2024-08-13 19:28:30 +02:00
command_divesite.h core: replace divesite_table_t by a vector of std::unique_ptr<>s 2024-08-13 19:28:30 +02:00
command_edit.cpp core: introduce a few user-defined literals for unit types 2024-09-11 10:23:07 +02:00
command_edit.h fix copy/paste of dive-site 2024-08-17 23:34:16 +12:00
command_edit_trip.cpp core: turn dive-trip location and notes into std::string 2024-08-13 19:28:30 +02:00
command_edit_trip.h core: turn dive-trip location and notes into std::string 2024-08-13 19:28:30 +02:00
command_event.cpp undo: exit early if no event in RemoveEvent() 2024-08-18 16:26:31 +02:00
command_event.h core: turn event-list of divecomputer into std::vector<> 2024-08-13 19:28:30 +02:00
command_filter.cpp core: remove filterconstraint C boilerplate code 2024-08-13 19:28:30 +02:00
command_filter.h core: port filterpreset.cpp to std::string 2024-03-10 11:01:42 +13:00
command_pictures.cpp core: move divesite_has_gps_information() to struct dive_site 2024-08-13 19:28:30 +02:00
command_pictures.h core: convert taxonomy.c to C++ 2024-08-13 19:28:30 +02:00