HCE project C++ developers source code library  1.1.1
HCE project developer library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SphinxTaskReducersManagerBuilder.hpp
Go to the documentation of this file.
1 
14 #ifndef SPHINXTASKREDUCERSMANAGERBUILDER_HPP_
15 #define SPHINXTASKREDUCERSMANAGERBUILDER_HPP_
16 
22 
23 namespace HCE
24 {
25 namespace sphinx
26 {
27 namespace reduce_task
28 {
29 
30 template<typename SphinxReduceJobBuilder = SphinxReduceJobBuilder<> >
32 public:
33  Poco::SharedPtr<SphinxTaskReducersManagerIf<SphinxReduceJobBuilder> >build()
34  {
35  Poco::SharedPtr<SphinxTaskReducersStorage<> >sphinxTaskReducersStorage(
37  Poco::SharedPtr<SphinxTaskReducerFactory<> >sphinxTaskReducerFactory(
39  Poco::SharedPtr<SphinxResultJSONConvertor>sphinxResultJSONConvertor(
41 
42  return Poco::SharedPtr<SphinxTaskReducersManagerIf<SphinxReduceJobBuilder> >(
43  new SphinxTaskReducersManager<>(sphinxTaskReducersStorage, sphinxTaskReducerFactory,
44  sphinxResultJSONConvertor));
45  }
46 };
47 
48 
49 }
50 }
51 }
52 
53 #endif