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;
65 for (
size_t i=0;i<matchesCount;++i)
67 std::stringstream stringValue;
76 matchInfo.setWeight(stringValue.str());
80 catch(std::exception& e)
91 std::stringstream logMsg;
97 for (
size_t i=0;i<matchesCount;++i)
99 std::stringstream stringValue;
100 if (orderFields.empty())
106 for (
size_t k=0;k<orderFields.size();++k)
116 matchInfo.setWeight(stringValue.str());
120 catch(std::exception& e)