blob: 905212046e334c58bd35995c5fca8edea8ce6796 (
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
43
44
45
46
47
|
/* -*- C++ -*- */
// $Id$
#include "IFR_Service.h"
#include "tao/Environment.h"
ACE_RCSID (IFR_Service,
IFR_Server,
"$Id$")
int
main (int argc, char *argv[])
{
IFR_Service server;
try
{
int status = server.init (argc, argv);
if (status != 0)
{
return 1;
}
else
{
server.run ();
status = server.fini ();
if (status == -1)
{
return 1;
}
}
}
catch (const CORBA::SystemException& sysex)
{
sysex._tao_print_exception ("System Exception");
return -1;
}
catch (const CORBA::Exception& ex)
{
ex._tao_print_exception ("Unknown Exception");
return -1;
}
return 0;
}
|