From 29c6d78edb88a38c2bfde54fc7ecccc691bbef30 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 16 Mar 2016 22:57:15 -0400 Subject: Added verbly submodule --- verbly/lib/verb.h | 73 ------------------------------------------------------- 1 file changed, 73 deletions(-) delete mode 100644 verbly/lib/verb.h (limited to 'verbly/lib/verb.h') diff --git a/verbly/lib/verb.h b/verbly/lib/verb.h deleted file mode 100644 index 7cc87e2..0000000 --- a/verbly/lib/verb.h +++ /dev/null @@ -1,73 +0,0 @@ -#ifndef VERB_H_BCC929AD -#define VERB_H_BCC929AD - -namespace verbly { - - /*class frame_part { - - }; - - class frame { - private: - std::list content; - std::map::iterator>> predicates; - - public: - frame(std::list content) : content(content) - { - - } - - std::unique_ptr make_utterance() const - { - - } - };*/ - - class verb : public word { - private: - std::string _infinitive; - std::string _past_tense; - std::string _past_participle; - std::string _ing_form; - std::string _s_form; - - friend class verb_query; - - public: - verb(const data& _data, int _id); - - std::string base_form() const; - std::string infinitive_form() const; - std::string past_tense_form() const; - std::string past_participle_form() const; - std::string ing_form() const; - std::string s_form() const; - }; - - class verb_query { - public: - verb_query(const data& _data); - - verb_query& limit(int _limit); - verb_query& random(bool _random); - verb_query& except(const verb& _word); - verb_query& rhymes_with(const word& _word); - verb_query& has_pronunciation(bool _has_prn); - - std::list run() const; - - const static int unlimited = -1; - - private: - const data& _data; - int _limit = unlimited; - bool _random = false; - std::list _rhymes; - std::list _except; - bool _has_prn = false; - }; - -}; - -#endif /* end of include guard: VERB_H_BCC929AD */ -- cgit 1.4.1