EHM DAL 0.2.5
Data abstraction layer for Eastside Hockey Manager
Loading...
Searching...
No Matches
comp_stage_structure.h
1#pragma once
2
3// Application headers
4#include "include/schema/abstract_table_item.h"
5
6namespace ehm_dal::schema {
7// --- Club Stage Structure --- //
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 bool init() override;
23
24 // Operator overloading
26 auto operator<=>(const CompStageStructure &rhs) const;
27 bool operator<(const CompStageStructure &rhs) const;
28
29 /*
30 // Get data
31 QVariant data(const qint32 column, const qint32 role) const override;
32 QString displayText() const override;
33
34 // Set data
35 void setData(const qint32 column,
36 const QVariant &value,
37 const qint32 role,
38 std::vector<qint32> &modified_columns) override;
39
40 // Operator overloading
41 bool operator<(const CompStageStructure &rhs) const;
42*/
43
44private:
45 struct Data;
46 std::unique_ptr<Data> data_;
47};
48} // 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: comp_stage_structure.h:9
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.
bool init() override
Initialises the table item members. This only needs to be called once per item.