From 8c3022e759191e90b5e12bcb6b0b5a6a48b37840 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 20 May 2016 23:14:06 -0400 Subject: Pulled the ebooks functionality out into a library --- freevars.cpp | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 freevars.cpp (limited to 'freevars.cpp') diff --git a/freevars.cpp b/freevars.cpp deleted file mode 100644 index 4429d00..0000000 --- a/freevars.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include "freevars.h" -#include -#include "kgramstats.h" - -freevar::freevar(word& w, std::string file) : w(w) -{ - std::ifstream infile(file); - if (infile) - { - std::string line; - while (getline(infile, line)) - { - instances.insert(line); - w.forms.add(line); - } - } -} - -bool freevar::check(std::string f) const -{ - return (instances.count(f) == 1); -} - -void freevar::add(std::string f) -{ - instances.insert(f); -} - -word& freevar::getWord() -{ - return w; -} -- cgit 1.4.1