IAGCAlephImpl.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef __IAGCAlephImpl_h__
  2. #define __IAGCAlephImpl_h__
  3. /////////////////////////////////////////////////////////////////////////////
  4. // IAGCAlephImpl.h : Declaration of the IAGCAlephImpl class template.
  5. //
  6. #include "IAGCModelImpl.h"
  7. /////////////////////////////////////////////////////////////////////////////
  8. // Interface Map Macro
  9. //
  10. // Classes derived from IAGCAlephImpl should include this macro in their
  11. // interface maps.
  12. //
  13. #define COM_INTERFACE_ENTRIES_IAGCAlephImpl() \
  14. COM_INTERFACE_ENTRY(IAGCAleph) \
  15. COM_INTERFACE_ENTRY(IDispatch) \
  16. COM_INTERFACE_ENTRIES_IAGCModelImpl()
  17. /////////////////////////////////////////////////////////////////////////////
  18. // IAGCAlephImpl
  19. //
  20. template <class T, class IGC, class ITF, const GUID* plibid>
  21. class ATL_NO_VTABLE IAGCAlephImpl :
  22. public IAGCModelImpl<T, IGC, ITF, plibid, IwarpIGC, IAGCAleph>
  23. {
  24. // Types
  25. public:
  26. typedef IAGCAlephImpl<T, IGC, ITF, plibid> IAGCAlephImplBase;
  27. // IAGCAleph Interface Methods
  28. public:
  29. STDMETHODIMP get_Destination(IAGCAleph** ppDestination)
  30. {
  31. assert(GetIGC());
  32. assert(GetIGC()->GetDestination());
  33. return GetAGCGlobal()->GetAGCObject(GetIGC()->GetDestination(),
  34. IID_IAGCAleph, (void**)ppDestination);
  35. }
  36. };
  37. /////////////////////////////////////////////////////////////////////////////
  38. #endif //__IAGCAlephImpl_h__