EHM DAL 0.2.5
Data abstraction layer for Eastside Hockey Manager
Loading...
Searching...
No Matches
schedule_round_data.h
1#pragma once
2
3// Application headers
4#include "include/tools/schedule_generator/schedule_template_generator/dates_generator.h"
5#include "include/tools/schedule_generator/schedule_template_generator/schedule_club.h"
6#include "include/tools/schedule_generator/schedule_template_generator/schedule_game_table.h"
7#include "include/tools/schedule_generator/schedule_template_generator/schedule_round.h"
8
9// Qt headers
10#include <vector>
11
12// --- Draft schedule round data --- //
13namespace ehm_dal::tools::schedule_template_generator {
19{
20public:
22
23 // Add data
24 bool add(std::pair<qint32, qint32> &game);
25
26 // Debugging / diagnostics
27 void printDiagnosticData() const;
28
29 // Get data
30 inline qint32 count() const { return static_cast<qint32>(rounds_.size()); }
31
32 // Scheduling
33 bool allocate(ScheduleGameTable &schedule,
34 DatesGenerator &dates,
35 const std::vector<std::shared_ptr<ScheduleClub> > &clubs);
36
37private:
38 std::vector<ScheduleRound> rounds_;
39};
40} // namespace ehm_dal::tools::schedule_template_generator
The DatesGenerator class generates dates for a schedule template.
Definition: dates_generator.h:12
The ScheduleGameTable class is a container for ScheduleGames.
Definition: schedule_game_table.h:20
The ScheduleRoundData class contains a draft schedule consisting of round data which can then be conv...
Definition: schedule_round_data.h:19