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 {
33 Library(bool uinput, bool uoutput) :
34 Libs(NULL, FALSE, 0, 0), utf8_input(uinput), utf8_output(uoutput) {}
36 bool process_phrase(const char *loc_str, TSearchResultList &res_list);
37 std::vector<InstantDictIndex> query_dictmask;
40 bool utf8_input, utf8_output;
42 void SimpleLookup(const string &str, TSearchResultList& res_list);
43 void LookupWithFuzzy(const string &str, TSearchResultList& res_list);
44 void LookupWithRule(const string &str, TSearchResultList& res_lsit);
45 void LookupData(const string &str, TSearchResultList& res_list);
48 #endif//!_LIBWRAPPER_HPP_