26 Poco::SharedPtr<CalculateStrategy> strategy =
nullptr;
29 if (weightAlgirithm.empty())
32 switch(std::stoul(weightAlgirithm))
49 if (!strategy.isNull())
51 strategy->calculate(orderFields, resultData);
59 std::stringstream logMsg;
64 for (
size_t i=0;i<matchesCount;++i)
66 std::stringstream stringValue;
70 matchInfo.setWeight(stringValue.str());
74 catch(std::exception& e)
85 std::stringstream logMsg;
90 for (
size_t i=0;i<matchesCount;++i)
92 std::stringstream stringValue;
93 if (orderFields.empty())
99 for (
size_t k=0;k<orderFields.size();++k)
107 matchInfo.setWeight(stringValue.str());
111 catch(std::exception& e)