-
Notifications
You must be signed in to change notification settings - Fork 0
/
listener.h
46 lines (35 loc) · 1017 Bytes
/
listener.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef OOPFINAL_LISTENER_H
#define OOPFINAL_LISTENER_H
#include "docus.h"
class Listener {
Document* doc_ptr;
Trie* trie_ptr1;
Trie* trie_ptr2;
int how_many_words_do_you_want;
public:
Listener(const std::vector<std::string>& sd, const std::vector<std::string>& strd);
~Listener();
std::string listen();
private:
static void print_manual() {
std::cout << mint_manuals::general_manual;
}
static void print_str_manual() {
std::cout << mint_manuals::str_manual;
}
static void print_tab_manual() {
std::cout << mint_manuals::tab_manual;
}
static void print_cha_manual() {
std::cout << mint_manuals::cha_manual;
}
// Access functions
void access(int n);
void modify_str(StringHolder* p);
static void modify_tab(TableHolder* p);
static void modify_cha(ChartHolder* p);
std::string save() {
return doc_ptr->save();
}
};
#endif //OOPFINAL_LISTENER_H