-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLibrary.h
More file actions
35 lines (34 loc) · 729 Bytes
/
Library.h
File metadata and controls
35 lines (34 loc) · 729 Bytes
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
29
30
31
32
33
34
35
#pragma once
#include "UserStore.h"
#include "BookStore.h"
class Library
{
public:
Library();
void open(const String&);
void save();
void saveAs(const String&);
void close();
void logIn();
void logOut();
void exit();
void help() const;
void booksAll() const;
void booksInfo(const size_t) const;
void booksFind(const String&,const String&) const;
void booksSortAscending(const String&);
void booksSortDescending(const String&);
void booksAdd();
void booksRemove(const String&);
void usersAdd(const String&, const String&);
void usersRemove(const String&);
void clear();
const User& activeUser();
private:
UserStore users;
BookStore books;
bool isOpened;
bool isSaved;
bool isChanged;
String FileName;
};