summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/performance-tests/RTEvent/lib/RTServer_Setup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/performance-tests/RTEvent/lib/RTServer_Setup.cpp')
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/lib/RTServer_Setup.cpp50
1 files changed, 50 insertions, 0 deletions
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/lib/RTServer_Setup.cpp b/TAO/orbsvcs/performance-tests/RTEvent/lib/RTServer_Setup.cpp
new file mode 100644
index 00000000000..1ea7d0eee78
--- /dev/null
+++ b/TAO/orbsvcs/performance-tests/RTEvent/lib/RTServer_Setup.cpp
@@ -0,0 +1,50 @@
+/**
+ * @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)
+ : RTClient_Setup (use_rt_corba,
+ orb,
+ rt_class,
+ nthreads)
+{
+
+ if (use_rt_corba)
+ {
+ ACE_AUTO_PTR_RESET (this->rtpoa_setup_,
+ new RTPOA_Setup (orb,
+ *this->rtcorba_setup ()),
+ RTPOA_Setup
+ );
+
+ this->poa_ =
+ this->rtpoa_setup_->poa ();
+ }
+ else
+ {
+ this->poa_ =
+ RIR_Narrow<RTPortableServer::POA>::resolve (orb,
+ "RootPOA");
+ }
+}