From 8b1333d0e6e2b9a5014bdbff2987d899f5413fee Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 16 Mar 2016 21:35:35 -0400 Subject: Added word derivational relationships (kind of eh at the moment) and moved verbly into its own directory --- verbly/lib/data.h | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 verbly/lib/data.h (limited to 'verbly/lib/data.h') diff --git a/verbly/lib/data.h b/verbly/lib/data.h new file mode 100644 index 0000000..37092d7 --- /dev/null +++ b/verbly/lib/data.h @@ -0,0 +1,49 @@ +#ifndef DATA_H_C4AEC3DD +#define DATA_H_C4AEC3DD + +#include +#include + +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 */ -- cgit 1.4.1