home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR9
/
WIZTOO.ZIP
/
README.TXT
< prev
next >
Wrap
Text File
|
1993-09-19
|
2KB
|
38 lines
September 19, 1993
Fairfield, Iowa
This example demonstrates the use of the Broadcast Channel Wizard. In this
example there is one producer: WeatherStation. There are four consumers:
2- Airports, 1- FireDepartment, and 1- School. There are three broadcast
channels: WindData, AirData, and TornadoWarning.
As always, there is just one broadcaster object: oBroadcaster.
Consumers, Airport and FireDepartment, receive broadcasts on all three
channels. Consumer School receives only TornadoWarnings. The consumer objects
remain connected to the broadcast channels as long as they exist. Therefore,
each consumer object's constructor connects its respective object to the
broadcaster. Each object's destructor disconnects from the broadcaster.
The WeatherStation is implemented as a class in modules, PRODUCER.H and
PRODUCER.CPP
The three types of consumers (Airports, FireDepartment, and School) are
implemented as three classes in modules, CONSUMER.H and CONSUMER.CPP
The broadcast channels are specified in module, WEATHER.SPC The
Broadcast Channel Wizard produces modules, CHNNLDEF.H, BRDCASTR.H,
BRDCASTR.CPP, APP.CPP Module APP.CPP was used by the programmer as a
template to create modules, CONSUMER.H, CONSUMER.CPP, and PRODUCER.CPP
Modules CHANNEL.H and CHANNEL.CPP come bundled with the Broadcast
Channel Wizard.
The example program's main component is implemented in module MAIN.CPP
It instantiates the producer and consumer objects and activates them.
Object oBroadcaster is instantiated in module BRDCASTR.CPP which is generated
by the Broadcast Channel Wizard.
Module MAIN.MAK was built by Microsoft's Visual C++ Workbench (TM).