Player12
An open source football management simulator
Loading...
Searching...
No Matches
staff_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#include <vector>
13
15#include "model/staff.h"
16
22{
23 public:
24 explicit StaffRepository(std::shared_ptr<DatabaseConnection> db_conn);
25
27 std::vector<StaffMember> loadAll() const;
28
30 void replaceAll(const StaffRoster& roster) const;
31
32 private:
33 std::shared_ptr<DatabaseConnection> db_conn;
34};
Persists every staff member (table Staff; team_id 0 = market).
Definition staff_repository.h:22
void replaceAll(const StaffRoster &roster) const
Definition staff_repository.cpp:106
std::vector< StaffMember > loadAll() const
Definition staff_repository.cpp:78
std::shared_ptr< DatabaseConnection > db_conn
Definition staff_repository.h:33
Every staff member of the world with per-club effect caches. Concurrent effects queries return indepe...
Definition staff.h:138