14 #ifndef SPHINX_WEIGHT_CALCULATOR_HPP
15 #define SPHINX_WEIGHT_CALCULATOR_HPP
17 #include <Poco/SharedPtr.h>
40 void weightToStream(
const std::string& input, std::ostream& os)
throw (std::exception);
49 Poco::SharedPtr<CalculateStrategy>
create(
const std::string& weightAlgirithm);
59 void setStrategy(Poco::SharedPtr<CalculateStrategy> strategy_) {strategy=strategy_;}
60 Poco::SharedPtr<CalculateStrategy>&
getStrategy(
void) {
return strategy;}
64 Poco::SharedPtr<CalculateStrategy> strategy;
96 #endif // SPHINX_WEIGHT_CALCULATOR_HPP