Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / orbsvcs / performance-tests / RTEvent / lib / RTServer_Setup.cpp
blob7bfbabe6592516d595a425ef40469aacbe7d4248
1 /**
2 * @file RTServer_Setup.cpp
4 * @author Carlos O'Ryan <coryan@uci.edu>
5 */
7 #include "RTServer_Setup.h"
8 #include "RIR_Narrow.h"
9 #include "tao/RTCORBA/RTCORBA.h"
11 #include "ace/Log_Msg.h"
13 #if !defined(__ACE_INLINE__)
14 #include "RTServer_Setup.inl"
15 #endif /* __ACE_INLINE__ */
17 RTServer_Setup::RTServer_Setup (int use_rt_corba,
18 CORBA::ORB_ptr orb,
19 const RT_Class &rt_class,
20 int nthreads)
21 : RTClient_Setup (use_rt_corba,
22 orb,
23 rt_class,
24 nthreads)
26 if (use_rt_corba)
28 this->rtpoa_setup_.reset (new RTPOA_Setup (orb, *this->rtcorba_setup ()));
30 this->poa_ = this->rtpoa_setup_->poa ();
32 else
34 this->poa_ = RIR_Narrow<RTPortableServer::POA>::resolve (orb, "RootPOA");