Website Summary Files Commits Branches @commit @diff @stats
path: root / Utils / Kindle / Page.h
diff options
context:
space:
mode:
Commit40f7cc8f54d0c221a391457fd38a44d0633aa088 (patch)
Author
 angeld55 <angel_dimitriev@abv.bg>
2022-05-16 14:05:08 +0300
Committer
 angeld55 <angel_dimitriev@abv.bg>
2022-05-16 14:05:08 +0300
Files29fecbef2da1e832f3f8e9e23db6fffe35d7ddc6 /Utils/Kindle/Page.h
Object-oriented_programming_FMI-40f7cc8f54d0c221a391457fd38a44d0633aa088.tar
Object-oriented_programming_FMI-40f7cc8f54d0c221a391457fd38a44d0633aa088.tar.gz
Object-oriented_programming_FMI-40f7cc8f54d0c221a391457fd38a44d0633aa088.zip
Parentde7b4d3f7ac3ecd42ca336b0d477712a462d27ee (diff)
fixed typo in folder name
1 files changed, 21 insertions, 0 deletions
-rw-r--r--Utils/Kindle/Page.h21
diff --git a/Utils/Kindle/Page.h b/Utils/Kindle/Page.h
new file mode 100644
index 0000000..b184da8
--- /dev/null
+++ b/Utils/Kindle/Page.h
@@ -0,0 +1,21 @@
+#pragma once
+#include"vector.hpp"
+#include"string.h"
+#include<iostream>
+#include"serialize.h"
+
+const short MAX_LINES_IN_PAGE = 26;
+
+class Page {
+private:
+ Vector<string> lines;
+
+ void write(unsigned linesCount);
+ void displayPage() const;
+
+ void writeToFile(std::ofstream& outFile) const;
+ void readFromFile(std::ifstream& inFile);
+
+ friend class Book;
+};
+