home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / debug / prtque / querdr.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-29  |  1011 b   |  43 lines

  1. #ifndef _QUERDR_
  2. #define _QUERDR_
  3. //************************************************************
  4. // Problem Determination  - Trace Queue Browser
  5. //
  6. // Copyright (C) 1994, Law, Leong, Love, Olson, Tsuji.
  7. // Copyright (c) 1997 John Wiley & Sons, Inc. 
  8. // All Rights Reserved.
  9. //************************************************************
  10. #include <ihandle.hpp>
  11. #include <istring.hpp>
  12.  
  13. // Retrieves messages from queue, creates objects from them,
  14. // and sends to main window.
  15. class QueueReader {
  16. public:
  17. QueueReader  ( const char*          queueName,
  18.                const IWindowHandle& receiver);
  19. ~QueueReader ( );
  20.  
  21. void
  22.   run           ( );
  23. unsigned long
  24.  queueHandle    ( ) const { return qHandle;}
  25. IWindowHandle
  26.  targetHandle   ( ) const { return target;}
  27.  
  28. private:
  29. IWindowHandle
  30.   target;
  31. unsigned long
  32.   qHandle;
  33. char
  34.   *queueData;
  35. IString
  36.   fqueueName;
  37.  
  38. QueueReader    (const QueueReader&);
  39. QueueReader
  40.   &operator=   (const QueueReader&);
  41. };
  42. #endif  // _QUERDR_
  43.