Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / examples / Callback_Quoter / notifier.cpp
blob27f9be21919822540c3bbf0adc3fa2d2fe538bb7
1 #include "Notifier_Input_Handler.h"
3 // This is the main driver program for the Callback Quoter Notifier.
4 int
5 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
7 Notifier_Input_Handler notifier;
9 ACE_DEBUG ((LM_DEBUG, "\n\tNotifier\n\n"));
11 try
13 int rc = notifier.init (argc, argv);
15 if (rc == -1)
16 return 1;
17 else
19 notifier.run ();
22 catch (const CORBA::SystemException& sysex)
24 sysex._tao_print_exception ("System Exception");
25 return -1;
27 catch (const CORBA::UserException& userex)
29 userex._tao_print_exception ("User Exception");
30 return -1;
33 return 0;