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
TaskReducersManagerFactory.cpp
Go to the documentation of this file.
2 
3 namespace HCE{
4 namespace reduce{
5 
7 
9 
10 Poco::SharedPtr<additions::TaskReducersManagerIf>TaskReducersManagerFactory::
12 {
13  switch(managerType){
14 
15  case types::MessageType::mtSphinx:
16  return sphinxTaskReducersManagerFactory.build();
17 
18  case types::MessageType::mtDrce:
19  return drceTaskReducersManagerFactory.build();
20 
21  default:
22  throw HCE::reduce::NotFoundByKeyException("TaskReducersManagerFactory, require to build " +
23  std::to_string(static_cast<int>(managerType)) + " managerType");
24  }
25 }
26 
27 }
28 }