Player12
An open source football management simulator
Loading...
Searching...
No Matches
scouting_repository.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2// Football Management Project
3// Copyright (c) 2025 - 2026 Flavio Milinanni. All Rights Reserved.
4//
5// This file is part of the Football Management Project.
6// See the LICENSE file in the project root.
7// -----------------------------------------------------------------------------
8
9#pragma once
10
11#include <memory>
12
14#include "model/scouting.h"
15
23{
24 public:
25 explicit ScoutingRepository(std::shared_ptr<DatabaseConnection> db_conn);
26
28 bool load(ScoutingState& state) const;
29
31 void save(const ScoutingState& state) const;
32
33 private:
34 std::shared_ptr<DatabaseConnection> db_conn;
35};
Persists the scouting department (tables ScoutingState, ScoutingKnowledge, ScoutAssignments,...
Definition scouting_repository.h:23
bool load(ScoutingState &state) const
Definition scouting_repository.cpp:72
void save(const ScoutingState &state) const
Definition scouting_repository.cpp:212
std::shared_ptr< DatabaseConnection > db_conn
Definition scouting_repository.h:34
Persisted state of the managed club's scouting department.
Definition scouting.h:323