blob: 609f8f7b3144a3b0950c062262e9bcc857537c55 (
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
|
/**
* @file RTServer_Setup.cpp
*
* $Id$
*
* @author Carlos O'Ryan <coryan@uci.edu>
*/
#include "RTServer_Setup.h"
#include "RIR_Narrow.h"
#include "tao/RTCORBA/RTCORBA.h"
#include "ace/Log_Msg.h"
#if !defined(__ACE_INLINE__)
#include "RTServer_Setup.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (TAO_PERF_RTEC,
RTServer_Setup,
"$Id$")
RTServer_Setup::RTServer_Setup (int use_rt_corba,
CORBA::ORB_ptr orb,
const RT_Class &rt_class,
int nthreads
ACE_ENV_ARG_DECL)
: RTClient_Setup (use_rt_corba,
orb,
rt_class,
nthreads
ACE_ENV_ARG_PARAMETER)
{
ACE_CHECK;
if (use_rt_corba)
{
ACE_AUTO_PTR_RESET (this->rtpoa_setup_,
new RTPOA_Setup (orb,
*this->rtcorba_setup ()
ACE_ENV_ARG_PARAMETER),
RTPOA_Setup
);
ACE_CHECK;
this->poa_ =
this->rtpoa_setup_->poa ();
}
else
{
this->poa_ =
RIR_Narrow<RTPortableServer::POA>::resolve (orb,
"RootPOA"
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
}
|