Files
School/Anul 1/Semestrul 2/OOP/Labs/MockTest1/ParticipantRepo.h
T
2024-08-31 12:07:21 +03:00

17 lines
398 B
C++

#pragma once
#include "Participant.h"
#include <vector>
class ParticipantRepo
{
private:
std::string _file_name;
std::vector<Participant> _participants;
void read_from_file();
public :
ParticipantRepo(std::string file_name);
~ParticipantRepo()=default;
std::vector<Participant> get_all();
int size();
void write_to_file();
};