mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: remove filterconstraint C boilerplate code
Since all code can now directly access C++ structures these accessor functions were not necessary. Split out the table from the filterconstraint source file and include it directly into the divelog. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
2bdcdab391
commit
91968ac579
20 changed files with 212 additions and 250 deletions
|
|
@ -1,26 +1,24 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
// A structure that contains all the data we store in a divelog files
|
||||
// A structure that contains all the data we store in divelog files
|
||||
#ifndef DIVELOG_H
|
||||
#define DIVELOG_H
|
||||
|
||||
#include "divelist.h"
|
||||
#include "divesitetable.h"
|
||||
#include "filterpresettable.h"
|
||||
#include "triptable.h"
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
struct trip_table;
|
||||
struct device;
|
||||
struct filter_preset_table;
|
||||
|
||||
struct divelog {
|
||||
dive_table dives;
|
||||
trip_table trips;
|
||||
dive_site_table sites;
|
||||
std::vector<device> devices;
|
||||
std::unique_ptr<filter_preset_table> filter_presets;
|
||||
bool autogroup;
|
||||
filter_preset_table filter_presets;
|
||||
bool autogroup = false;
|
||||
|
||||
divelog();
|
||||
~divelog();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue