EHM DAL 0.2.5
Data abstraction layer for Eastside Hockey Manager
Loading...
Searching...
No Matches
ehm_dal::tables::TableAttributes Class Reference

Public Member Functions

 TableAttributes (const QString &name=QString(), const TableIndex table_id=TableIndex::NO_TABLE, const TableType type=TableType::STANDARD_TABLE, const qint16 minimum_supported_database_version=NO_DATABASE_VERSION)
 
quint32 readTableHeader (QDataStream &in)
 
bool writeTableHeader (QDataStream &out)
 
qint16 gameTableId () const
 Returns the internal EHM table id of the table.
 
TableIndex id () const
 Returns the id of the table. The id used to distinguish between tables in EHM DAL. This id is disinct from any table id used internally by EHM.
 
qint16 minimumSupportedDatabaseVersion () const
 Returns the minimum supported database version number.
 
QString name () const
 Returns the name of the table.
 
bool isDatabaseTable () const
 
bool isFlagBitmaskTable () const
 
bool isFlagStandardTable () const
 
bool isFlagTable () const
 
TableType type () const
 Returns the type of the table.
 

Static Public Attributes

static constexpr qint16 NO_DATABASE_VERSION {-1}
 

Member Function Documentation

◆ gameTableId()

qint16 ehm_dal::tables::TableAttributes::gameTableId ( ) const
inline

Returns the internal EHM table id of the table.

Returns
the internal EHM table id.

◆ id()

TableIndex ehm_dal::tables::TableAttributes::id ( ) const
inline

Returns the id of the table. The id used to distinguish between tables in EHM DAL. This id is disinct from any table id used internally by EHM.

Returns
the table id as a ehm_dal::tables::TableIndex.

◆ minimumSupportedDatabaseVersion()

qint16 ehm_dal::tables::TableAttributes::minimumSupportedDatabaseVersion ( ) const
inline

Returns the minimum supported database version number.

Returns
the minimum supported database version number.

◆ name()

QString ehm_dal::tables::TableAttributes::name ( ) const
inline

Returns the name of the table.

Returns
the table name.

◆ type()

TableType ehm_dal::tables::TableAttributes::type ( ) const
inline

Returns the type of the table.

Returns
the table type as a ehm_dal::tables::TableType.