-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClass Diagram
More file actions
62 lines (53 loc) · 2.06 KB
/
Class Diagram
File metadata and controls
62 lines (53 loc) · 2.06 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
@startuml
class Downloader {
- m_apiEndpoint : std::string
+ Downloader(apiEndpoint: std::string)
+ searchManga(mangaTitle: const std::string&) : std::vector<Manga>
+ searchManga(mangaTitle: const std::string&, includeTags: const std::vector<std::string>&) : std::vector<Manga>
+ searchManga(mangaTitle: const std::string&, includeTags: const std::vector<std::string>&, excludeTags: const std::vector<std::string>&) : std::vector<Manga>
+ downloadImage(url: const std::string&, filename: const std::string&) : bool
+ searchChapter(mangaUuid: const std::string&) : std::vector<Manga::Chapter>
+ downloadChapter(chapter: Manga::Chapter&, directory: const std::string&) : bool
- makeRequest(endpoint: const std::string&) : std::string
- generateTagMap() : std::map<std::string, std::string>
- getImageLinks(chapter: Manga::Chapter&) : std::tuple<std::string, std::string, std::vector<std::string>>
- tagMap : std::map<std::string, std::string>
}
class UserProgressRecorder {
+UserProgressRecorder(csvPath: const std::string&)
~UserProgressRecorder()
+addProgress(manga: Manga&, chapter: Manga::Chapter&)
+removeProgress(mangaUUID: const std::string&)
+viewAllProgress()
-csvPath: std::string
-csvFile: std::ofstream
+getCurrentTime(): std::string
}
class Manga {
-std::string m_title
-std::string m_uuid
-std::string m_description
-Chapter m_lastChapter
+Manga()
+Manga(std::string title, std::string uuid)
+std::string getTitle() const
+void setTitle(std::string title)
+std::string getUuid() const
+void setUuid(std::string uuid)
+std::string getDescription() const
+void setDescription(std::string description)
+Chapter getLastChapter() const
+void setLastChapter(Chapter lastChapter)
}
class Chapter {
+std::string uuid
+std::string title
+std::string volume
+std::string chapter
+std::string date
+std::string pageCount
}
Downloader --> Manga : retrieves
Manga "1" *-- "*" Chapter : contains
UserProgressRecorder --> Manga : records
@enduml