// // Copyright (c) ZeroC, Inc. All rights reserved. // #ifndef ICE_GRID_QUERY_I_H #define ICE_GRID_QUERY_I_H #include #include namespace IceGrid { class Database; class QueryI final : public Query { public: QueryI(const std::shared_ptr&, const std::shared_ptr&); std::shared_ptr findObjectById(Ice::Identity, const Ice::Current&) const override; std::shared_ptr findObjectByType(std::string, const Ice::Current&) const override; std::shared_ptr findObjectByTypeOnLeastLoadedNode(std::string, LoadSample, const Ice::Current&) const override; Ice::ObjectProxySeq findAllObjectsByType(std::string, const Ice::Current&) const override; Ice::ObjectProxySeq findAllReplicas(std::shared_ptr, const Ice::Current&) const override; private: const std::shared_ptr _communicator; const std::shared_ptr _database; }; } #endif