EventHandler.cpp
上传用户:nvosite88
上传日期:2007-01-17
资源大小:4983k
文件大小:2k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* EventHandler */
  2. /* Copyright (c) 1999 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01e,17dec01,nel  Add include symbol for diab.
  7. 01d,13jul01,dbs  fix up includes
  8. 01c,19aug99,aim  change assert to VXDCOM_ASSERT
  9. 01b,08jul99,aim  added timers
  10. 01a,07may99,aim  created
  11. */
  12. #include "EventHandler.h"
  13. #include "TraceCall.h"
  14. #include "private/comMisc.h"
  15. /* Include symbol for diab */
  16. extern "C" int include_vxdcom_EventHandler (void)
  17.     {
  18.     return 0;
  19.     }
  20. EventHandler::EventHandler ()
  21.   : m_reactor (0)
  22.     {
  23.     TRACE_CALL;
  24.     }
  25. EventHandler::~EventHandler () 
  26.     {
  27.     TRACE_CALL;
  28.     }
  29. REACTOR_HANDLE
  30. EventHandler::handleGet () const
  31.     {
  32.     TRACE_CALL;
  33.     return INVALID_REACTOR_HANDLE;
  34.     }
  35. REACTOR_HANDLE
  36. EventHandler::handleSet (REACTOR_HANDLE)
  37.     {
  38.     TRACE_CALL;
  39.     return INVALID_REACTOR_HANDLE;
  40.     }
  41. int
  42. EventHandler::handleClose (REACTOR_HANDLE, REACTOR_EVENT_MASK)
  43.     {
  44.     TRACE_CALL;
  45.     return INVALID_REACTOR_HANDLE;
  46.     }
  47. int
  48. EventHandler::handleInput (REACTOR_HANDLE)
  49.     {
  50.     TRACE_CALL;
  51.     return INVALID_REACTOR_HANDLE;
  52.     }
  53. int
  54. EventHandler::handleOutput (REACTOR_HANDLE)
  55.     {
  56.     TRACE_CALL;
  57.     return INVALID_REACTOR_HANDLE;
  58.     }
  59. int
  60. EventHandler::handleException (REACTOR_HANDLE)
  61.     {
  62.     TRACE_CALL;
  63.     return INVALID_REACTOR_HANDLE;
  64.     }
  65. int
  66. EventHandler::handleTimeout
  67.     (
  68.     const TimeValue&
  69.     )
  70.     {
  71.     TRACE_CALL;
  72.     return INVALID_REACTOR_HANDLE;
  73.     }
  74. Reactor*
  75. EventHandler::reactorSet (Reactor *reactor)
  76.     {
  77.     TRACE_CALL;
  78.     COM_ASSERT (reactor);
  79.     return m_reactor = reactor;
  80.     }
  81. Reactor*
  82. EventHandler::reactorGet () const
  83.     {
  84.     TRACE_CALL;
  85.     return m_reactor;
  86.     }