diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-03-16 22:57:15 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-03-16 22:57:15 -0400 |
commit | 29c6d78edb88a38c2bfde54fc7ecccc691bbef30 (patch) | |
tree | 21d458d02337420dfb1fd5eda4cffada38f9642a /verbly/lib/data.h | |
parent | 8b1333d0e6e2b9a5014bdbff2987d899f5413fee (diff) | |
download | furries-29c6d78edb88a38c2bfde54fc7ecccc691bbef30.tar.gz furries-29c6d78edb88a38c2bfde54fc7ecccc691bbef30.tar.bz2 furries-29c6d78edb88a38c2bfde54fc7ecccc691bbef30.zip |
Added verbly submodule
Diffstat (limited to 'verbly/lib/data.h')
-rw-r--r-- | verbly/lib/data.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/verbly/lib/data.h b/verbly/lib/data.h deleted file mode 100644 index 37092d7..0000000 --- a/verbly/lib/data.h +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | #ifndef DATA_H_C4AEC3DD | ||
2 | #define DATA_H_C4AEC3DD | ||
3 | |||
4 | #include <sqlite3.h> | ||
5 | #include <stdexcept> | ||
6 | |||
7 | namespace verbly { | ||
8 | |||
9 | class data; | ||
10 | class word; | ||
11 | class adjective; | ||
12 | class noun; | ||
13 | class verb; | ||
14 | class adverb; | ||
15 | class adjective_query; | ||
16 | class adverb_query; | ||
17 | class noun_query; | ||
18 | class verb_query; | ||
19 | |||
20 | class data { | ||
21 | private: | ||
22 | sqlite3* ppdb; | ||
23 | |||
24 | friend class adjective_query; | ||
25 | friend class noun_query; | ||
26 | friend class verb_query; | ||
27 | friend class adverb_query; | ||
28 | |||
29 | public: | ||
30 | data(std::string datafile); | ||
31 | |||
32 | data(const data& other) = delete; | ||
33 | data& operator=(const data& other) = delete; | ||
34 | |||
35 | data(data&& other); | ||
36 | data& operator=(data&& other); | ||
37 | |||
38 | ~data(); | ||
39 | |||
40 | verb_query verbs() const; | ||
41 | adjective_query adjectives() const; | ||
42 | adverb_query adverbs() const; | ||
43 | noun_query nouns() const; | ||
44 | |||
45 | }; | ||
46 | |||
47 | }; | ||
48 | |||
49 | #endif /* end of include guard: DATA_H_C4AEC3DD */ | ||