Newer
Older
TB_Chris / TbUT / src / .svn / text-base / TbUTClusterCreatorFactory.cpp.svn-base
@iaro iaro on 9 May 2016 702 bytes first attempt of automated anal
  1. /*
  2. * TbUTClusterCreatorFactory.cpp
  3. *
  4. * Created on: Jan 6, 2015
  5. * Author: ADendek
  6. */
  7.  
  8. #include "TbUTClusterCreatorFactory.h"
  9. #include "TbUTClusterCreator.h"
  10.  
  11. using namespace TbUT;
  12.  
  13.  
  14. ClusterCreatorFactory::ClusterCreatorFactory(const std::string& p_sensorType, ITresholdProvider & p_tresholds):
  15. m_sensorType(p_sensorType),
  16. m_thresholdPrivder(p_tresholds)
  17. {
  18. }
  19.  
  20. ClusterCreatorFactory::ClusterCreatorPtr ClusterCreatorFactory::createClusterCreator(const std::string& p_clusterCreatorType)
  21. {
  22. if(p_clusterCreatorType == TbUT::ClusterCreatorType::defaultCreator)
  23. return ClusterCreatorPtr(new ClusterCreator(m_sensorType,m_thresholdPrivder));
  24. else
  25. throw NoSuchState(p_clusterCreatorType);
  26. }