home *** CD-ROM | disk | FTP | other *** search
/ C/C++ User's Journal & Wi…eveloper's Journal Tools / C-C__Users_Journal_and_Windows_Developers_Journal_Tools_1997.iso / smxdemo / smxpp / event.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-21  |  1.0 KB  |  49 lines

  1. /*************************************************************************
  2. *  Copyright (c) 1989-1993 Micro Digital Associates, Inc.
  3. *                  All Rights Reserved.
  4. *
  5. *  MODULE: EVENT.HPP
  6. *
  7. *  DESRIPTION:
  8. *              This class is the event class. It functions like the
  9. *              smx event table.     
  10. *
  11. *  AUTHOR: Rick Evans 
  12. *
  13. *
  14. *  UPDATE LOG
  15. *
  16. *************************************************************************/
  17. #ifndef  __EVENT_HPP
  18. #define __EVENT_HPP  1
  19.  
  20. #include    <xtypes.h>     /* smx type and structure definitions */
  21.  
  22.  
  23. //Class
  24. class Event
  25. {
  26. private:
  27.  
  28.    ET_PTR     EventTP;
  29.  
  30. public:
  31.  
  32.    //-------- Constructors --------
  33.    Event( word num );
  34.    Event( const Event& t );
  35.    Event( ET_PTR p );
  36.  
  37.  
  38.    //---------- Methods -----------
  39.    BOOLEAN  ResetFlags( int mask );
  40.    BOOLEAN  SetFlags( int mask );
  41.    int      TestFlags( int mask, word timeOut=INF );
  42.    int      TestFlagsStop( int mask, word timeOut=INF );
  43.  
  44.    //--------- Destructor ---------
  45.    ~Event();         
  46. };
  47. #endif
  48. //EOF
  49.