summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/QueryI.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceGrid/QueryI.h')
-rw-r--r--cpp/src/IceGrid/QueryI.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/cpp/src/IceGrid/QueryI.h b/cpp/src/IceGrid/QueryI.h
new file mode 100644
index 00000000000..bb7d30d4cb2
--- /dev/null
+++ b/cpp/src/IceGrid/QueryI.h
@@ -0,0 +1,37 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2005 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+#ifndef ICE_GRID_QUERY_I_H
+#define ICE_GRID_QUERY_I_H
+
+#include <IceGrid/Query.h>
+
+namespace IceGrid
+{
+
+class QueryI : public Query, public IceUtil::Mutex
+{
+public:
+
+ QueryI(const Ice::CommunicatorPtr&, const ObjectRegistryPtr&);
+ virtual ~QueryI();
+
+ virtual ::Ice::ObjectPrx findObjectById(const ::Ice::Identity&, const ::Ice::Current&) const;
+ virtual ::Ice::ObjectPrx findObjectByType(const ::std::string&, const ::Ice::Current&) const;
+ virtual ::Ice::ObjectProxySeq findAllObjectsWithType(const ::std::string&, const ::Ice::Current&) const;
+
+private:
+
+ Ice::CommunicatorPtr _communicator;
+ ObjectRegistryPtr _objectRegistry;
+};
+
+}
+
+#endif