summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/performance-tests/RTEvent/lib/RIR_Narrow.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/performance-tests/RTEvent/lib/RIR_Narrow.h')
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/lib/RIR_Narrow.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/lib/RIR_Narrow.h b/TAO/orbsvcs/performance-tests/RTEvent/lib/RIR_Narrow.h
new file mode 100644
index 00000000000..2e22caccb82
--- /dev/null
+++ b/TAO/orbsvcs/performance-tests/RTEvent/lib/RIR_Narrow.h
@@ -0,0 +1,38 @@
+/**
+ * @file RIR_Narrow.h
+ *
+ * $Id$
+ *
+ * @author Jody Hagins <jody@atdesk.com>
+ * @author Carlos O'Ryan <coryan@uci.edu>
+ *
+ */
+#ifndef TAO_PERF_RTEC_RIR_NARROW_H
+#define TAO_PERF_RTEC_RIR_NARROW_H
+
+#include "tao/ORB.h"
+#include "tao/Object.h"
+
+/**
+ * @class RIR_Narrow
+ *
+ * @brief Implement a helper method to narrow the results from
+ * resolve_initial_references.
+ *
+ */
+template<class Interface>
+class RIR_Narrow
+{
+public:
+ typedef typename Interface::_ptr_type Interface_ptr;
+ typedef typename Interface::_var_type Interface_var;
+
+ static Interface_ptr resolve (CORBA::ORB_ptr orb,
+ const char *object_id);
+};
+
+#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
+#include "RIR_Narrow.cpp"
+#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
+
+#endif /* TAO_PERF_RTEC_RIR_NARROW_H */