summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/QueryI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IcePack/QueryI.cpp')
-rw-r--r--cpp/src/IcePack/QueryI.cpp50
1 files changed, 50 insertions, 0 deletions
diff --git a/cpp/src/IcePack/QueryI.cpp b/cpp/src/IcePack/QueryI.cpp
new file mode 100644
index 00000000000..79acce6065a
--- /dev/null
+++ b/cpp/src/IcePack/QueryI.cpp
@@ -0,0 +1,50 @@
+// **********************************************************************
+//
+// Copyright (c) 2002
+// ZeroC, Inc.
+// Billerica, MA, USA
+//
+// All Rights Reserved.
+//
+// Ice is free software; you can redistribute it and/or modify it under
+// the terms of the GNU General Public License version 2 as published by
+// the Free Software Foundation.
+//
+// **********************************************************************
+
+#include <IcePack/Internal.h>
+#include <IcePack/QueryI.h>
+
+using namespace std;
+using namespace Ice;
+using namespace IcePack;
+
+IcePack::QueryI::QueryI(const CommunicatorPtr& communicator, const ObjectRegistryPtr& objectRegistry) :
+ _communicator(communicator),
+ _objectRegistry(objectRegistry)
+{
+}
+
+IcePack::QueryI::~QueryI()
+{
+}
+
+Ice::ObjectPrx
+IcePack::QueryI::findObjectById(const Ice::Identity& id, const Ice::Current&) const
+{
+ return _objectRegistry->findById(id);
+}
+
+Ice::ObjectPrx
+IcePack::QueryI::findObjectByType(const string& type, const Ice::Current&) const
+{
+ return _objectRegistry->findByType(type);
+}
+
+Ice::ObjectProxySeq
+IcePack::QueryI::findAllObjectsWithType(const string& type, const Ice::Current&) const
+{
+ return _objectRegistry->findAllWithType(type);
+}
+
+