orcondition.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. ** Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  3. **
  4. ** File: orcondition.h
  5. **
  6. ** Author:
  7. **
  8. ** Description:
  9. ** Header file for the training library "orcondition" interface.
  10. **
  11. ** History:
  12. */
  13. #ifndef _OR_CONDITION_H_
  14. #define _OR_CONDITION_H_
  15. #ifndef _CONDITION_H_
  16. #include "Condition.h"
  17. #endif //_CONDITION_H_
  18. namespace Training
  19. {
  20. //------------------------------------------------------------------------------
  21. // class definitions
  22. //------------------------------------------------------------------------------
  23. class OrCondition : public Condition
  24. {
  25. public:
  26. /* void */ OrCondition (Condition* pConditionA, Condition* pConditionB);
  27. virtual /* void */ ~OrCondition (void);
  28. virtual bool Start (void);
  29. virtual void Stop (void);
  30. virtual bool Evaluate (void);
  31. protected:
  32. Condition* m_pConditionA;
  33. Condition* m_pConditionB;
  34. };
  35. //------------------------------------------------------------------------------
  36. }
  37. #endif //_OR_CONDITION_H_