blob: e0d7c138380f100cd8a2fc9f16678a94b9cbd9ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// $Id$
#include "Notifier_Input_Handler.h"
ACE_RCSID(notifier, Callback_Quoter, "$Id$")
// This is the main driver program for the Callback Quoter Notifier.
int
main (int argc, char *argv[])
{
Notifier_Input_Handler notifier;
ACE_DEBUG ((LM_DEBUG,
"\n\tNotifier\n\n"));
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
int rc = notifier.init (argc, argv ACE_ENV_ARG_PARAMETER);
if (rc == -1)
return 1;
else
{
notifier.run ();
}
}
ACE_CATCH (CORBA::SystemException, sysex)
{
ACE_PRINT_EXCEPTION (sysex, "System Exception");
return -1;
}
ACE_CATCH (CORBA::UserException, userex)
{
ACE_PRINT_EXCEPTION (userex, "User Exception");
return -1;
}
ACE_ENDTRY;
return 0;
}
|