hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SphinxResultCompareUtils.hpp
Go to the documentation of this file.
1 /*
2  * SphinxResultCompareUtils.h
3  *
4  * Created on: May 3, 2013
5  * Author: igor
6  */
7 
8 #ifndef SPHINXRESULTCOMPAREUTILS_H_
9 #define SPHINXRESULTCOMPAREUTILS_H_
10 
11 #include "SphinxResultData.hpp"
12 //#include "EncodeDecodeBase64.hpp"
13 #include <Poco/SharedPtr.h>
14 #include <string>
15 #include <vector>
16 
17 using namespace HCE::sphinx;
18 using namespace std;
19 
20 
21 bool isEqualWords(const WordInfo& word1, const WordInfo& word2);
22 
23 bool isEqualWordInfo(const vector<SphinxResultDataItem<WordInfo> > &checkWords,
24  const vector<SphinxResultDataItem<WordInfo> > &etalonWords);
25 
26 bool isEqualRequestInfoStatParams(const SphinxRequestInfo &checkInfo, const SphinxRequestInfo &etalonInfo);
27 
28 bool isEqualRequestInfo(SphinxResultData &checkResult, SphinxResultData& etalonResult);
29 
30 bool isEqAttrInfo(const vector<SphinxResultDataItem<AttrInfo> > &check,
31  const vector<SphinxResultDataItem<AttrInfo> > &etalon);
32 
33 bool isMatchInfoEq(const SphinxMatchInfo &checkInfo, const SphinxMatchInfo &etalonInfo);
34 
35 bool isEqualMatchInfo(SphinxResultData &checkResult, SphinxResultData& etalonResult);
36 
37 bool isEqualUnSortMatchInfo(SphinxResultData &checkResult, SphinxResultData& etalonResult);
38 
39 bool isEqualSphinxResultData(SphinxResultData &checkResult, SphinxResultData& etalonResult);
40 
42 
44 
45 SphinxMatchInfo buildSimpleMatchInfo(unsigned long long id, unsigned long long weight);
46 
47 
48 #endif /* SPHINXRESULTCOMPAREUTILS_H_ */