aboutsummaryrefslogtreecommitdiffstats
path: root/stats/statsselection.h
blob: 9e606c533990ead8267722aa15906004f83669fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// SPDX-License-Identifier: GPL-2.0
// Functions and data structures handling dive selections.

#ifndef STATS_SELECTION_H
#define STATS_SELECTION_H

#include <vector>

struct dive;

struct SelectionModifier {
	unsigned int ctrl : 1;
	unsigned int shift : 1;
	// Note: default member initializers for bit-fields becomes available with C++20.
	// Therefore, for now an inline constructor.
	SelectionModifier() : ctrl(0), shift(0) {}
};

void processSelection(std::vector<dive *> dives, SelectionModifier modifier);

#endif