3 //=============================================================================
5 * @file Supplier_Input_Handler.h
7 * Handle input from the keyboard.
9 * @author Douglas C. Schmidt (d.schmidt@vanderbilt.edu) and Pradeep Gore (pradeep@cs.wustl.edu)
11 //=============================================================================
14 #ifndef SUPPLIER_INPUT_HANDLER_H
15 #define SUPPLIER_INPUT_HANDLER_H
17 #include "ace/Service_Config.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 // Forward declaration.
24 class Notifier_Handler
;
27 * @class Supplier_Input_Handler
29 * @brief Handles input events generated from a keyboard.
31 * The events are currently framed and forwarded to all Consumers.
32 * In the future, we will need to be more selective and only send
33 * to those Consumers whose filtering criteria matches!
35 class Supplier_Input_Handler
: public ACE_Event_Handler
39 Supplier_Input_Handler (void);
42 ~Supplier_Input_Handler (void);
45 int initialize (Notifier_Handler
*);
47 /// Frame input events and notify <Consumers>.
48 virtual int handle_input (ACE_HANDLE
);
50 /// Close down the handler.
54 /// Pointer to a <Notifier_Handler> that's used to inform Consumers
55 /// that events of interest have occurred.
56 Notifier_Handler
*notifier_
;
59 #endif /* SUPPLIER_INPUT_HANDLER_H */