diff options
| author | Vlad Voicu <vladvoic@gmail.com> | 2011-11-29 02:41:07 (GMT) |
|---|---|---|
| committer | vlad <vlad@tyrion.(none)> | 2012-10-13 13:55:44 (GMT) |
| commit | 0a13558efc0ccf0e5afceb63c416d8cb401997ec (patch) | |
| tree | 0fe17d78ecced7389b7f2a3d121b223bbce8dc26 /SwifTools/SpellChecker.h | |
| parent | 5e7be9a49cf540a68275f084e57a6efe8d7c1626 (diff) | |
| download | swift-contrib-0a13558efc0ccf0e5afceb63c416d8cb401997ec.zip swift-contrib-0a13558efc0ccf0e5afceb63c416d8cb401997ec.tar.bz2 | |
Added Factory for creeating SpellCheckers
Diffstat (limited to 'SwifTools/SpellChecker.h')
| -rw-r--r-- | SwifTools/SpellChecker.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/SwifTools/SpellChecker.h b/SwifTools/SpellChecker.h index 1c3148b..64a7c95 100644 --- a/SwifTools/SpellChecker.h +++ b/SwifTools/SpellChecker.h @@ -4,21 +4,16 @@ * See Documentation/Licenses/GPLv3.txt for more information. */ -#include <vector> #include <boost/algorithm/string.hpp> +#include <vector> #pragma once -class Hunspell; - namespace Swift { class SpellChecker { public: - SpellChecker(); - ~SpellChecker(); - bool isCorrect(const std::string& word); - void getSuggestions(const std::string& word, std::vector<std::string>& list); - private: - Hunspell* speller_; + virtual ~SpellChecker() { }; + virtual bool isCorrect(const std::string& word) = 0; + virtual void getSuggestions(const std::string& word, std::vector<std::string>& list) = 0; }; } |
Swift