blob: 95fdd4a1291dd51b3ee79bed4fb1b2c801263fac (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
/* -*- C++ -*- */
// $Id$
#include "IFR_Service.h"
#include "orbsvcs/IFRService/ComponentRepository_i.h"
#include "orbsvcs/IFRService/Options.h"
#include "orbsvcs/IFRService/IFR_ComponentsS.h"
#include "orbsvcs/IFRService/IFR_Service_Utils.h"
#include "orbsvcs/IOR_Multicast.h"
#include "tao/IORTable/IORTable.h"
#include "tao/ORB_Core.h"
#include "ace/Auto_Ptr.h"
ACE_RCSID (IFR_Service,
IFR_Service,
"$Id$")
IFR_Service::IFR_Service (void)
{
}
IFR_Service::~IFR_Service (void)
{
}
int
IFR_Service::init (int argc,
char *argv[])
{
int result;
try
{
this->orb_ = CORBA::ORB_init (argc,
argv,
0);
result = this->my_ifr_server_.init_with_orb (argc,
argv,
this->orb_.in ());
if (result != 0)
{
return result;
}
}
catch (const CORBA::Exception& ex)
{
ex._tao_print_exception ("IFR_Service::init");
throw;
}
return 0;
}
int
IFR_Service::run (void)
{
this->orb_->run (0);
return 0;
}
int
IFR_Service::fini (void)
{
try
{
this->my_ifr_server_.fini ();
}
catch (const CORBA::Exception& ex)
{
ex._tao_print_exception ("IFR_Service::fini");
throw;
}
return 0;
}
|