EHM DAL 0.2.3
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)
 
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.
 
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.
 

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.

◆ 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.