home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 035 / pmics.zip / engcom.hh < prev    next >
Text File  |  1994-10-29  |  380b  |  20 lines

  1. #include <ihandle.hpp>
  2. #include <ithread.hpp>
  3.  
  4. #define  NPIPE_NAME "\\PIPE\\ENGICS"
  5.  
  6. class EngineComm
  7. {
  8. public:
  9.   EngineComm();
  10.   ~EngineComm();
  11.   void sendCommand(char *s);    // write s on pipe
  12.   void setConnected() { connected = true; }
  13.   void clearConnected() { connected = false; }
  14. private:
  15.   IThread    *pthr;
  16.   IHandle    hpipe;
  17.   Boolean    connected;
  18. };
  19.  
  20.