EHM DAL 0.2.5
Data abstraction layer for Eastside Hockey Manager
Loading...
Searching...
No Matches
schedule_template_game.h
1#pragma once
2
3// Application headers
4#include "include/schema/abstract_table_item.h"
5
6namespace ehm_dal::schema {
7// --- Schedule template game --- //
9{
10public:
11 // Constructor
16
17 // File I/O
18 bool read(QDataStream &in, ehm_dal::database::DatabaseVersion &version) override;
19 bool write(QDataStream &out, ehm_dal::database::DatabaseVersion &version) override;
20
21 // Initialisation
22 inline bool init() override { return false; }
23
24 // Operator overloading
26 auto operator<=>(const ScheduleTemplateGame &rhs) const;
27 bool operator<(const ScheduleTemplateGame &rhs) const;
28
29private:
30 struct Data;
31 std::unique_ptr<Data> data_;
32};
33} // namespace ehm_dal::schema
The DatabaseVersion class represents the database version number.
Definition: database_version.h:12
The AbstractTableItem class represents a row in a Table with no primary key (id/uid) field.
Definition: abstract_table_item.h:23
Definition: schedule_template_game.h:9
bool init() override
Initialises the table item members. This only needs to be called once per item.
Definition: schedule_template_game.h:22
bool write(QDataStream &out, ehm_dal::database::DatabaseVersion &version) override
Writes a table row to the QDataStream.
bool read(QDataStream &in, ehm_dal::database::DatabaseVersion &version) override
Reads a table row from the QDataStream.