1 #ifndef _LIBWRAPPER_HPP_
2 #define _LIBWRAPPER_HPP_
13 //this structure is wrapper and it need for unification
14 //results of search whith return Dicts class
15 struct TSearchResult {
20 TSearchResult(const string& bookname_, const string& def_, const string& exp_)
21 : bookname(bookname_), def(def_), exp(exp_)
26 typedef vector<TSearchResult> TSearchResultList;
27 typedef TSearchResultList::iterator PSearchResult;
29 //this class is wrapper around Dicts class for easy use
31 class Library : public Libs {
36 std::vector<InstantDictIndex> query_dictmask;
37 CurrentIndex *iCurrentIndex;
39 void ListWords(CurrentIndex* iIndex);
40 bool BuildResultData(std::vector<InstantDictIndex> &dictmask, const char* sWord, CurrentIndex *iIndex, int iLib, TSearchResultList& res_list);
42 bool SimpleLookup(const gchar* sWord, CurrentIndex* piIndex);
43 void LookupWithFuzzy(const gchar* sWord);
44 void LookupWithRule(const gchar* sWord);
46 void LookupData(const string &str, TSearchResultList& res_list);
49 #endif//!_LIBWRAPPER_HPP_