School Commit Init
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#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();
|
||||
};
|
||||
Reference in New Issue
Block a user