EHM DAL 0.2.5
Data abstraction layer for Eastside Hockey Manager
Loading...
Searching...
No Matches
extra_rule.h
1#pragma once
2
3// Application headers
4namespace ehm_dal::database {
5class DatabaseVersion;
6}
7
8// Qt headers
9class QDataStream;
10#include <QtGlobal>
11#include <memory>
12
13namespace ehm_dal::ehm_extra_rules {
14
15// --- Extra rule item --- //
17{
18public:
19 ExtraRule();
20 ExtraRule(const ExtraRule &other);
21 ~ExtraRule();
22
23 // File i/o
24 bool read(QDataStream &in, ehm_dal::database::DatabaseVersion &version);
25 bool write(QDataStream &out, ehm_dal::database::DatabaseVersion &version);
26
27 // Operator overloading
28 ExtraRule &operator=(ExtraRule o);
29 inline auto operator<=>(const ExtraRule &o) const;
30 inline bool operator==(const ExtraRule &o) const;
31 bool operator<(const ExtraRule &other) const;
32
33private:
34 struct Data;
35 std::unique_ptr<Data> data_;
36};
37} // namespace ehm_dal::ehm_extra_rules
38
The DatabaseVersion class represents the database version number.
Definition: database_version.h:12
Definition: extra_rule.h:17