home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR9 / WIZTOO.ZIP / APP.CPP next >
C/C++ Source or Header  |  1993-09-22  |  1KB  |  39 lines

  1. //  Module: APP.CPP
  2.  
  3. //  Cut and paste the contents of this module to create
  4. //  application code.  There are two sections: Producer
  5. //  calls and Consumer methods.
  6.  
  7. #include "CHNNLDEF.H"
  8.  
  9. //  Producer calls --
  10.  
  11.     oBroadcast.BroadcastWindData(iSpeed, iDirection);
  12.     oBroadcast.BroadcastAirData(iTemperature, iBarometricPressure, iHumdity);
  13.     oBroadcast.BroadcastTornadoWarning();
  14.  
  15. //  Consumer methods --
  16.  
  17. class Consumer1 : public WindData {
  18. public:
  19.     void ReceiveWindData (int iSpeed, int iDirection);
  20. };
  21. void Consumer1::ReceiveWindData (int iSpeed, int iDirection) {}
  22.  
  23. class Consumer2 : public AirData {
  24. public:
  25.     void ReceiveAirData (int iTemperature,
  26.          int iBarometricPressure,
  27.          int iHumdity);
  28. };
  29. void Consumer2::ReceiveAirData (int iTemperature,
  30.          int iBarometricPressure,
  31.          int iHumdity) {}
  32.  
  33. class Consumer3 : public TornadoWarning {
  34. public:
  35.     void ReceiveTornadoWarning (void);
  36. };
  37. void Consumer3::ReceiveTornadoWarning (void) {}
  38.  
  39.