1 //=============================================================================
5 * This class implements driver for the Publish/Subscribe example
7 //=============================================================================
12 * @brief Supplier driver for the TAO Publish/Subscribe example.
14 * This class starts up the <Supplier_Input_Handler> and
15 * <Notifier_Handler> objects.
17 class Supplier
: public ACE_Event_Handler
, public ShutdownCallback
20 // Initialization and Termination methods.
22 Supplier () = default;
25 ~Supplier () = default;
27 /// Initialization method. returns 0 on success, -1 on error.
28 int init (int argc
, ACE_TCHAR
*argv
[]);
30 /// Execute the supplier.
33 /// Shutdown the application.
34 virtual void close ();
37 /// Handle shutdown signals.
38 virtual int handle_signal (int signum
,
42 /// Handler for keyboard input.
43 Supplier_Input_Handler ih_
;
45 /// The notifier handler.