Newer
Older
TB_Chris / TbUT / src / .svn / text-base / TbUTNoiseCalculatorfactory.h.svn-base
@iaro iaro on 9 May 2016 740 bytes first attempt of automated anal
  1. /*
  2. * TbUTNoiseCalculatorfactory.h
  3. *
  4. * Created on: Jan 3, 2015
  5. * Author: ADendek
  6. */
  7. #pragma once
  8.  
  9. #include "TbUTINoiseCalculator.h"
  10. #include <string>
  11. #include <boost/shared_ptr.hpp>
  12.  
  13. namespace TbUT
  14. {
  15.  
  16. namespace NoiseCalculatorType
  17. {
  18. static const std::string& calculator="calculator";
  19. static const std::string& fake="fake";
  20. }
  21.  
  22. class NoiseCalculatorFactory
  23. {
  24. public:
  25. typedef boost::shared_ptr<INoiseCalculator> NoiseCalcualtorPtr;
  26. NoiseCalculatorFactory();
  27. NoiseCalcualtorPtr createNoiseCalculator(const std::string& p_noiseCalculatorType);
  28.  
  29. class NoSuchState: public std::runtime_error
  30. {
  31. public:
  32. NoSuchState(const std::string& p_errorMsg ):
  33. std::runtime_error(p_errorMsg)
  34. {
  35. }
  36. };
  37.  
  38. };
  39.  
  40. } /* namespace TbUT */
  41.