Website Summary Files Commits Branches @commit @diff @stats
path: root / Utils / Kindle / User.h
blob: 97d3a4b76bc56bb7f0341df8e028f6d6351dc8c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once
#include"string.h"
#include"vector.hpp"
#include"Book.h"
#include"serialize.h"

class User {
private:
	string name;
	string password;
	Vector<size_t> indexesOfBooksRead;
	Vector<size_t> indexesOfBooksWritten;

	friend class Kindle;
public:
	User() {}
	User(const string& pName, const string& pPassword);

	void writeToFile(std::ofstream& outFile) const;
	void readFromFile(std::ifstream& inFile);
};