ReleaseConsumerAction.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. ** Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  3. **
  4. ** File: ReleaseConsumerAction.cpp
  5. **
  6. ** Author:
  7. **
  8. ** Description:
  9. ** Implementation of the training library "ReleaseConsumerAction" interface.
  10. **
  11. ** History:
  12. */
  13. #include "pch.h"
  14. #include "ReleaseConsumerAction.h"
  15. namespace Training
  16. {
  17. //------------------------------------------------------------------------------
  18. // class methods
  19. //------------------------------------------------------------------------------
  20. /* void */ ReleaseConsumerAction::ReleaseConsumerAction (const TRef<IbuoyIGC>& buoy) :
  21. m_buoy (buoy)
  22. {
  23. }
  24. //------------------------------------------------------------------------------
  25. /* void */ ReleaseConsumerAction::~ReleaseConsumerAction (void)
  26. {
  27. m_buoy = 0;
  28. }
  29. //------------------------------------------------------------------------------
  30. void ReleaseConsumerAction::Execute (void)
  31. {
  32. m_buoy->ReleaseConsumer ();
  33. }
  34. //------------------------------------------------------------------------------
  35. }