4#include "include/tables/table_index.h"
5#include "include/tables/table_type.h"
18 const qint16 minimum_supported_database_version = NO_DATABASE_VERSION);
21 quint32 readTableHeader(QDataStream &in);
22 bool writeTableHeader(QDataStream &out);
25 static constexpr qint16 NO_DATABASE_VERSION{-1};
45 return minimum_supported_database_version_;
51 inline QString
name()
const {
return name_; }
54 bool isDatabaseTable()
const;
55 bool isFlagBitmaskTable()
const;
56 bool isFlagStandardTable()
const;
57 bool isFlagTable()
const;
65 static constexpr qint16 NO_TABLE_ID{-1};
68 qint64 file_position_{-1};
69 quint32 record_count_{0};
73 qint16 game_table_id_{NO_TABLE_ID};
74 qint16 minimum_supported_database_version_{NO_DATABASE_VERSION};
Definition: table_attributes.h:13
qint16 minimumSupportedDatabaseVersion() const
Returns the minimum supported database version number.
Definition: table_attributes.h:43
QString name() const
Returns the name of the table.
Definition: table_attributes.h:51
TableIndex id() const
Returns the id of the table. The id used to distinguish between tables in EHM DAL....
Definition: table_attributes.h:38
TableType type() const
Returns the type of the table.
Definition: table_attributes.h:62
qint16 gameTableId() const
Returns the internal EHM table id of the table.
Definition: table_attributes.h:32
namespace ehm_dal::tables
Definition: column.h:4
TableType
The TableType enum denotes different types of database table.
Definition: table_type.h:12
TableIndex
The TableIndex enum represents the id number of each table within the database.
Definition: table_index.h:14