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

The TvDate class handles data needed for scheduling games between different arenas on the same schedule date and also possibly moving games to nearby dates for televising. More...

#include <tv_date.h>

Inheritance diagram for ehm_dal::schema::TvDate:

Public Types

enum  ENUM_TV_DATES {
  TV_NONE = -1 , TV_REGIONAL , TV_NATIONAL , TV_SATELLITE ,
  TV_SILENT , TV_DONT_MOVE_ANY_MATCHES , TV_TYPES_MAX , MAX_TV_DATES
}
 

Public Member Functions

 TvDate (const TvDate &other)
 
 TvDate (TvDate &&other)
 
bool read (QDataStream &in, ehm_dal::database::DatabaseVersion &version) override
 Reads a table row from the QDataStream.
 
bool write (QDataStream &out, ehm_dal::database::DatabaseVersion &version) override
 Writes a table row to the QDataStream.
 
bool init () override
 Initialises the table item members. This only needs to be called once per item.
 
TvDateoperator= (TvDate rhs)
 
auto operator<=> (const TvDate &rhs) const
 
bool operator< (const TvDate &rhs) const
 
- Public Member Functions inherited from ehm_dal::schema::AbstractTableItem
 AbstractTableItem ()
 Default constructor.
 
virtual ~AbstractTableItem ()
 Default destructor.
 
virtual bool read (QDataStream &in, ehm_dal::database::DatabaseVersion &version)
 Reads a table row from the QDataStream.
 
virtual bool write (QDataStream &out, ehm_dal::database::DatabaseVersion &version)
 Writes a table row to the QDataStream.
 
virtual bool init ()=0
 Initialises the table item members. This only needs to be called once per item.
 

Additional Inherited Members

- Protected Member Functions inherited from ehm_dal::schema::AbstractTableItem
virtual bool deletable () const
 
template<IntegralNumber T>
QVariant fromHexVector (const std::vector< T > &raw_data, const qint32 role) const
 
QVariant fromValue (const QVariant &value, const qint32 role) const
 Returns a value as a QVariant if the role is Qt::DisplayRole or Qt::EditRole. A blank QVariant is returned if another role is selected.
 

Detailed Description

The TvDate class handles data needed for scheduling games between different arenas on the same schedule date and also possibly moving games to nearby dates for televising.

Member Function Documentation

◆ init()

bool ehm_dal::schema::TvDate::init ( )
inlineoverridevirtual

Initialises the table item members. This only needs to be called once per item.

Returns
true if members were initialised or false if nothing requires initialising.

Implements ehm_dal::schema::AbstractTableItem.

◆ read()

bool ehm_dal::schema::TvDate::read ( QDataStream &  in,
ehm_dal::database::DatabaseVersion version 
)
overridevirtual

Reads a table row from the QDataStream.

Parameters
inQDataStream to be parsed
versionEHM database version
Returns
whether or not the parsing was successful

Reimplemented from ehm_dal::schema::AbstractTableItem.

◆ write()

bool ehm_dal::schema::TvDate::write ( QDataStream &  out,
ehm_dal::database::DatabaseVersion version 
)
overridevirtual

Writes a table row to the QDataStream.

Parameters
outQDataStream to be output to
versionEHM database version
Returns
whether or not the out was successful

Reimplemented from ehm_dal::schema::AbstractTableItem.