diff options
| author | bala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-02-10 03:45:37 +0000 |
|---|---|---|
| committer | bala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-02-10 03:45:37 +0000 |
| commit | be40f48dd986204d27111aea45859d03bf21c7b6 (patch) | |
| tree | 3d87ab96d89f6fe093ec54601de99f42e3cb3ef3 /TAO/examples/Event_Comm/notifier.cpp | |
| parent | aaa79e4dd3a5cb5bcecc6e0ff64bc29a515c90ef (diff) | |
| download | ATCD-be40f48dd986204d27111aea45859d03bf21c7b6.tar.gz | |
*** empty log message ***
Diffstat (limited to 'TAO/examples/Event_Comm/notifier.cpp')
| -rw-r--r-- | TAO/examples/Event_Comm/notifier.cpp | 49 |
1 files changed, 11 insertions, 38 deletions
diff --git a/TAO/examples/Event_Comm/notifier.cpp b/TAO/examples/Event_Comm/notifier.cpp index b583931699f..213738cf943 100644 --- a/TAO/examples/Event_Comm/notifier.cpp +++ b/TAO/examples/Event_Comm/notifier.cpp @@ -1,36 +1,9 @@ // $Id$ #include "Notifier_Server.h" - +#include "notifier.h" ACE_RCSID(Notifier, notifier, "$Id$") -class Notifier : public ACE_Event_Handler -{ - // = TITLE - // Notifier driver for the TAO Publish/Subscribe example. - // - // = DESCRIPTION - // The driver class for the <Event_Comm::Notifier> object. -public: - // = Initialization and termination methods. - Notifier (int argc, char *argv[]); - // Constructor. - - ~Notifier (void); - // Destructor. - - void run (void); - // Execute the notifier. - -private: - virtual int handle_signal (int signum, - siginfo_t *, - ucontext_t *); - // Handle signals that shut us down. - - Notifier_Server ns_; - // The notifier server. -}; int Notifier::handle_signal (int signum, siginfo_t *, ucontext_t *) @@ -47,29 +20,29 @@ Notifier::handle_signal (int signum, siginfo_t *, ucontext_t *) void Notifier::run (void) { - TAO_TRY + ACE_TRY_NEW_ENV { - ns_.run (TAO_TRY_ENV); - TAO_CHECK_ENV; + ns_.run (ACE_TRY_ENV); + ACE_TRY_CHECK; } - TAO_CATCHANY + ACE_CATCHANY { return; } - TAO_ENDTRY; + ACE_ENDTRY; } Notifier::Notifier (int argc, char *argv[]) { - TAO_TRY + ACE_TRY_NEW_ENV { - ns_.init (argc, argv, TAO_TRY_ENV); + ns_.init (argc, argv, ACE_TRY_ENV); } - TAO_CATCHANY + ACE_CATCHANY { - TAO_TRY_ENV.print_exception ("Notifier_Server.init failed\n "); + ACE_TRY_ENV.print_exception ("Notifier_Server.init failed\n "); } - TAO_ENDTRY; + ACE_ENDTRY; // Register with the ORB's Reactor to receive a signal to shut us // down. |
