blob: 37092d7933723e3809c29e687fe2f59f5279ca44 (
plain) (
blame)
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
|
#ifndef DATA_H_C4AEC3DD
#define DATA_H_C4AEC3DD
#include <sqlite3.h>
#include <stdexcept>
namespace verbly {
class data;
class word;
class adjective;
class noun;
class verb;
class adverb;
class adjective_query;
class adverb_query;
class noun_query;
class verb_query;
class data {
private:
sqlite3* ppdb;
friend class adjective_query;
friend class noun_query;
friend class verb_query;
friend class adverb_query;
public:
data(std::string datafile);
data(const data& other) = delete;
data& operator=(const data& other) = delete;
data(data&& other);
data& operator=(data&& other);
~data();
verb_query verbs() const;
adjective_query adjectives() const;
adverb_query adverbs() const;
noun_query nouns() const;
};
};
#endif /* end of include guard: DATA_H_C4AEC3DD */
|