Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / examples / Callback_Quoter / notifier.cpp
blobdde220c305c16320318ee70a8b9a9c1f3d7fca0b
1 #include "Notifier_Input_Handler.h"
3 // This is the main driver program for the Callback Quoter Notifier.
5 int
6 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
8 Notifier_Input_Handler notifier;
10 ACE_DEBUG ((LM_DEBUG,
11 "\n\tNotifier\n\n"));
13 try
15 int rc = notifier.init (argc, argv);
17 if (rc == -1)
18 return 1;
19 else
21 notifier.run ();
24 catch (const CORBA::SystemException& sysex)
26 sysex._tao_print_exception ("System Exception");
27 return -1;
29 catch (const CORBA::UserException& userex)
31 userex._tao_print_exception ("User Exception");
32 return -1;
35 return 0;