summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/ImplRepo_Service/INS_Locator.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/ImplRepo_Service/INS_Locator.h')
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/INS_Locator.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/TAO/orbsvcs/ImplRepo_Service/INS_Locator.h b/TAO/orbsvcs/ImplRepo_Service/INS_Locator.h
new file mode 100644
index 00000000000..c80a9d6d7b5
--- /dev/null
+++ b/TAO/orbsvcs/ImplRepo_Service/INS_Locator.h
@@ -0,0 +1,52 @@
+// -*- C++ -*-
+//=============================================================================
+/**
+ * @file INS_Locator.h
+ *
+ * $Id$
+ *
+ * @brief This class implements the ImR's INS Locator class
+ *
+ * @author Darrell Brunsch <brunsch@cs.wustl.edu>
+ */
+//=============================================================================
+
+#ifndef IMR_INS_LOCATOR_H
+#define IMR_INS_LOCATOR_H
+#include /**/ "ace/pre.h"
+
+#include "tao/IORTable/IORTable.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "tao/LocalObject.h"
+
+
+class ImR_Locator_i;
+
+/**
+ * @class INS_Locator
+ *
+ * @brief Implementation Repository INS Locator class
+ *
+ * This class provides a callback for the IORTable to call when it needs
+ * to dynamically receive a IOR to forward in response to an INS request.
+ */
+class INS_Locator
+ : public virtual IORTable::Locator,
+ public virtual CORBA::LocalObject
+{
+public:
+ INS_Locator (ImR_Locator_i& loc);
+
+ /// Locate the appropriate IOR.
+ char* locate (const char *object_key);
+
+private:
+ ImR_Locator_i& imr_locator_;
+};
+
+#include /**/ "ace/post.h"
+#endif