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 / bucket.hpp next >
Encoding:
C/C++ Source or Header  |  1993-01-14  |  1.1 KB  |  50 lines

  1. /*************************************************************************
  2. *  Copyright (c) 1989-1992 Micro Digital Associates, Inc.
  3. *                  All Rights Reserved.
  4. *
  5. *  MODULE: BUCKET.HPP - Bucket Character Exchange
  6. *
  7. *  DESRIPTION:
  8. *              This header file contins the class definition for the
  9. *              bucket class. This class is derived from the SIOBus class. 
  10. *
  11. *
  12. *  AUTHOR: Rick Evans 
  13. *
  14. *
  15. *  UPDATE LOG
  16. *
  17. *************************************************************************/
  18.  
  19. #ifndef __BUKEXCHG_HPP
  20. #define __BUKEXCHG_HPP     1
  21.  
  22. #include      "siobus.hpp"
  23. #include          <xtypes.h>    
  24.  
  25. class Bucket : public SIOBus
  26. {
  27.  
  28. public:
  29.  
  30.    //---- constructors ------
  31.    // create just the bucket
  32.    Bucket();
  33.    // create a bucket and a message for the buffer.
  34.    Bucket( word size );
  35.    // create a bucket from c level.
  36.    Bucket( CXCB_PTR p );
  37.  
  38.    //----- methods ----------
  39. private:
  40.    // GetChar and PutChar are intended to be used in the device driver/
  41.    virtual  int      GetChar();
  42.    virtual  BOOLEAN  PutChar( char achar );
  43.  
  44.    //---- destructor ------
  45.    ~Bucket();
  46. };
  47.  
  48. #endif
  49. //EOF
  50.