Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
763 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. /* CDbgOutput.h
  3. *****************************************************************************/
  4. #ifndef CDBGOUTPUT_H
  5. # define CDBGOUTPUT_H
  6. class CDbgOutput : public IDebugOutputCallbacks
  7. {
  8. public:
  9. // Ctor/dtor
  10. CDbgOutput();
  11. ~CDbgOutput();
  12. // IUnknown.
  13. STDMETHOD( QueryInterface )( THIS_ IN REFIID InterfaceId,
  14. OUT PVOID* Interface );
  15. STDMETHOD_( ULONG, AddRef )( THIS );
  16. STDMETHOD_( ULONG, Release )( THIS );
  17. // IDebugOutputCallbacks.
  18. STDMETHOD( Output )( THIS_ IN ULONG Mask, IN PCSTR Text );
  19. void SetOutputPanel( vgui::VPANEL Target );
  20. private:
  21. int m_iRefCount;
  22. vgui::VPANEL m_Target;
  23. };
  24. #endif /* CDBGOUTPUT_H */
  25. /* CDbgOutput.h */