GetProbeCountCondition.cpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. ** Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  3. **
  4. ** File: GetProbeCountCondition.cpp
  5. **
  6. ** Author:
  7. **
  8. ** Description:
  9. ** Implementation of the training library "GetProbeCountCondition" interface.
  10. **
  11. ** History:
  12. */
  13. #include "pch.h"
  14. #include "GetProbeCountCondition.h"
  15. namespace Training
  16. {
  17. //------------------------------------------------------------------------------
  18. // class methods
  19. //------------------------------------------------------------------------------
  20. /* void */ GetProbeCountCondition::GetProbeCountCondition (int iProbeCount) :
  21. m_iProbeCount (iProbeCount)
  22. {
  23. }
  24. //------------------------------------------------------------------------------
  25. /* void */ GetProbeCountCondition::~GetProbeCountCondition (void)
  26. {
  27. }
  28. //------------------------------------------------------------------------------
  29. bool GetProbeCountCondition::Evaluate (void)
  30. {
  31. return (trekClient.GetCore ()->GetProbes ()->n () == m_iProbeCount) ? true : false;
  32. }
  33. //------------------------------------------------------------------------------
  34. }