Newer
Older
TB_Chris / TbUT / src / .svn / text-base / TbUTITresholdProvider.h.svn-base
@iaro iaro on 9 May 2016 566 bytes first attempt of automated anal
  1. /*
  2. * TbUTIZSTresholdProvider.h
  3. *
  4. * Created on: Nov 27, 2014
  5. * Author: ADendek
  6. */
  7.  
  8. #pragma once
  9.  
  10. #include <string>
  11. #include <stdexcept>
  12.  
  13. namespace TbUT
  14. {
  15.  
  16. class ITresholdProvider
  17. {
  18. public:
  19. virtual ~ITresholdProvider(){}
  20. virtual void retreiveTresholds()=0;
  21. virtual double getLowClusterThreshold(int p_channel)=0;
  22. virtual double getHighClusterThreshold(int p_channel)=0;
  23.  
  24. class ThresholdProviderError: public std::runtime_error
  25. {
  26. public:
  27. ThresholdProviderError(const std::string& p_errorMsg ):
  28. std::runtime_error(p_errorMsg)
  29. {
  30. }
  31. };
  32.  
  33. };
  34.  
  35. }