TypeIDTarget.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. ** Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  3. **
  4. ** File: TypeIDTarget.cpp
  5. **
  6. ** Author:
  7. **
  8. ** Description:
  9. ** Implementation of the training library "TypeIDTarget" interface.
  10. **
  11. ** History:
  12. */
  13. #include "pch.h"
  14. #include "TypeIDTarget.h"
  15. namespace Training
  16. {
  17. //------------------------------------------------------------------------------
  18. // class methods
  19. //------------------------------------------------------------------------------
  20. /* void */ TypeIDTarget::TypeIDTarget (ObjectType targetType, ObjectID targetID) :
  21. m_targetType (targetType),
  22. m_targetID (targetID)
  23. {
  24. }
  25. //------------------------------------------------------------------------------
  26. /* void */ TypeIDTarget::~TypeIDTarget (void)
  27. {
  28. }
  29. //------------------------------------------------------------------------------
  30. /* ImodelIGC* */ TypeIDTarget::operator ImodelIGC* (void)
  31. {
  32. return trekClient.GetCore ()->GetModel (m_targetType, m_targetID);
  33. }
  34. //------------------------------------------------------------------------------
  35. }