diff options
author | Benoit Foucher <benoit@zeroc.com> | 2005-04-01 15:42:10 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2005-04-01 15:42:10 +0000 |
commit | f496752b90c2d5c9099b7dbca383bd30820a6ebd (patch) | |
tree | daba3e307aea127eccb2b1c50fe9353f18f1ca05 /cpp/src/IceGrid/QueryI.h | |
parent | ObjectNotExistException is now retried. (diff) | |
download | ice-f496752b90c2d5c9099b7dbca383bd30820a6ebd.tar.bz2 ice-f496752b90c2d5c9099b7dbca383bd30820a6ebd.tar.xz ice-f496752b90c2d5c9099b7dbca383bd30820a6ebd.zip |
Copied IcePack code to IceGrid.
Diffstat (limited to 'cpp/src/IceGrid/QueryI.h')
-rw-r--r-- | cpp/src/IceGrid/QueryI.h | 37 |
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 |