EHM DAL 0.2.3
Data abstraction layer for Eastside Hockey Manager
Loading...
Searching...
No Matches
ehm_dal::tables Namespace Reference

namespace ehm_dal::tables More...

Classes

class  AbstractBaseModel
 
class  AbstractTable
 The Table class represents a database table and provides access to rows of data. More...
 
class  GameChildTable
 The GameChildTable class is a model for child data of a parent table. Each parent item has a single child item (such as Staff which each has a single related StaffInfo entry). More...
 
class  GameChildTreeTable
 The GameChildTreeTable class is a model for child data of a parent table. Each parent item can have mulitple child items (such as Staff which each may have multiple related StaffHistory entries). More...
 
class  GameTable
 
class  TableAttributes
 

Concepts

concept  ColumnData
 The GameTable class is a template sub-class of Table and is intended for use as a database table.
 

Enumerations

enum class  TableIndex : char {
  SAVED_GAME_TABLE = -2 , NO_TABLE = -1 , GAME_BASIC_DATA = 0 , DATABASE_HEADER ,
  CONTINENTS , NATIONS , CITIES , STATES ,
  ARENAS , COLOURS , CLUBS , AFFILIATIONS ,
  RETIRED_NUMBERS , STAFF , STAFF_PREFERENCES , NON_PLAYER_DATA ,
  PLAYER_DATA , STAFF_HISTORY , CLUB_COMPETITIONS , CLUB_COMPETITION_HISTORY ,
  STAFF_AWARDS , STAFF_AWARD_HISTORY , OFFICIALS , FIRST_NAMES ,
  SECOND_NAMES , INJURIES , CURRENCIES , STAGE_NAMES ,
  DRAFT_HISTORY , DRAFTS , PLAYER_RIGHTS , CLUB_HISTORY ,
  CLUB_RECORDS , PLAYER_INFO , STAFF_INFO
}
 The TableIndex enum represents the id number of each table within the database. More...
 
enum class  TableType : unsigned char {
  STANDARD_TABLE , TABLE_HEADER , TABLE_WITH_NO_TABLE_ID , TABLE_WITH_NO_HEADER ,
  BITMASK_FLAG_TABLE , FLAG_TABLE
}
 The TableType enum denotes different types of database table. More...
 

Detailed Description

namespace ehm_dal::tables

Enumeration Type Documentation

◆ TableIndex

enum class ehm_dal::tables::TableIndex : char
strong

The TableIndex enum represents the id number of each table within the database.

TableIndex is used by variety of classes in order to access a specific database table. The index values are used to distinguish between tables in EHM DAL. The values are disinct from any table id used internally by EHM.

Enumerator
SAVED_GAME_TABLE 

saved game table

NO_TABLE 

no table

GAME_BASIC_DATA 

game basic data

DATABASE_HEADER 

database header

CONTINENTS 

continents

NATIONS 

nations

CITIES 

cities

STATES 

states

ARENAS 

arenas

COLOURS 

colours

CLUBS 

clubs

AFFILIATIONS 

affiliations

RETIRED_NUMBERS 

retired numbers

STAFF 

staff (i.e. players & non-players)

STAFF_PREFERENCES 

staff preferences

NON_PLAYER_DATA 

non-player attributes

PLAYER_DATA 

player attributes

STAFF_HISTORY 

player career history

CLUB_COMPETITIONS 

club competitions

CLUB_COMPETITION_HISTORY 

club competition history

STAFF_AWARDS 

staff awards

STAFF_AWARD_HISTORY 

staff award history

OFFICIALS 

officials

FIRST_NAMES 

first names (i.e. forenames)

SECOND_NAMES 

second names (i.e. surnames)

INJURIES 

injuries

CURRENCIES 

currencies

STAGE_NAMES 

stage names

DRAFT_HISTORY 

draft history (i.e. drafted players)

DRAFTS 

drafts

PLAYER_RIGHTS 

player rights

CLUB_HISTORY 

club history

CLUB_RECORDS 

club records

PLAYER_INFO 

player stats

STAFF_INFO 

staff info (i.e. players & non-players)

◆ TableType

enum class ehm_dal::tables::TableType : unsigned char
strong

The TableType enum denotes different types of database table.

Enumerator
STANDARD_TABLE 

standard table

TABLE_HEADER 

table header

TABLE_WITH_NO_TABLE_ID 

table with no EHM table id

TABLE_WITH_NO_HEADER 

table with no record count or EHM table id

BITMASK_FLAG_TABLE 

table containing ehm_dal::flags::Flag data (bitmask format)

FLAG_TABLE 

table containing ehm_dal::flags::Flag data (non-bitmask format)