-
Notifications
You must be signed in to change notification settings - Fork 0
/
PlikZUzytkownikami.h
28 lines (20 loc) · 819 Bytes
/
PlikZUzytkownikami.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef PLIKZUZYTKOWNIKAMI_H
#define PLIKZUZYTKOWNIKAMI_H
#include <iostream>
#include <vector>
#include <fstream>
#include <cstdlib>
#include "Uzytkownik.h"
#include "MetodyPomocnicze.h"
#include "PlikTekstowy.h"
using namespace std;
class PlikZUzytkownikami: public PlikTekstowy {
string zamienDaneUzytkownikaNaLinieZDanymiOddzielonaPionowymiKreskami(Uzytkownik uzytkownik);
Uzytkownik pobierzDaneUzytkownika(string daneJednegoUzytkownikaOddzielonePionowymiKreskami);
public:
PlikZUzytkownikami(string nazwaPlikuZUzytkownikami) : PlikTekstowy(nazwaPlikuZUzytkownikami) {};
void dopiszUzytkownikaDoPliku(Uzytkownik uzytkownik);
vector<Uzytkownik> wczytajUzytkownikowZPliku();
void zapiszWszystkichUzytkownikowDoPliku(vector<Uzytkownik> &uzytkownicy);
};
#endif // PLIKZUZYTKOWNIKAMI_H