14 #ifndef SPHINX_WEIGHT_CALCULATOR_HPP
15 #define SPHINX_WEIGHT_CALCULATOR_HPP
17 #include <Poco/SharedPtr.h>
42 static void weightToStream(
const std::string& input, std::ostream& os)
throw (std::exception);
51 static Poco::SharedPtr<CalculateStrategy>
create(
const std::string& weightAlgirithm);
61 void setStrategy(Poco::SharedPtr<CalculateStrategy> strategy_) {strategy=strategy_;}
62 Poco::SharedPtr<CalculateStrategy>&
getStrategy(
void) {
return strategy;}
66 Poco::SharedPtr<CalculateStrategy> strategy;
98 #endif // SPHINX_WEIGHT_CALCULATOR_HPP