14 #ifndef SPHINX_RESULT_DATA_SERIALIZATOR_HPP
15 #define SPHINX_RESULT_DATA_SERIALIZATOR_HPP
25 namespace search_result_json_const
44 const std::string
word =
"w";
45 const std::string
hits =
"h";
46 const std::string
docs =
"d";
65 const char delimiter =
':';
66 unsigned int fieldsCount;
67 unsigned int fieldWidth;
70 std::string
pack(
const std::string&
data,
unsigned int minNumberFieldsPacking);
97 bool serialize(std::string& json,
unsigned int fieldCount,
unsigned int minNumberFieldsPacking);
116 unsigned int maxResultNumber=0);
120 unsigned int maxResultNumber=0);
122 const std::string&
getJSON(
void)
const {
return json;}
130 std::string errorMsg;
131 unsigned int errorCode;
141 #endif // SPHINX_RESULT_DATA_SERIALIZATOR_HPP