diff options
author | Benoit Foucher <benoit@zeroc.com> | 2002-12-05 22:31:29 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2002-12-05 22:31:29 +0000 |
commit | 7abe0bb2e951d22f67f34d38bd4892f30ad901bb (patch) | |
tree | 4844d8f0ed9c4988f5ec8988aa313b1f47f15162 /cpp/src/IcePack/Client.cpp | |
parent | Added support for object lookup by identity (diff) | |
download | ice-7abe0bb2e951d22f67f34d38bd4892f30ad901bb.tar.bz2 ice-7abe0bb2e951d22f67f34d38bd4892f30ad901bb.tar.xz ice-7abe0bb2e951d22f67f34d38bd4892f30ad901bb.zip |
Added IcePack object registry.
Added support for locator object lookup by identity.
Added Query interface to lookup objects by type.
Changed the IcePack.Registry.Locator properties to IcePack.Registry.Client
Changed the IcePack.Registry.LocatorRegistry properties to
IcePack.Registry.Se rver
Added IcePack demo
Minor fixes and clean-up
Diffstat (limited to 'cpp/src/IcePack/Client.cpp')
-rw-r--r-- | cpp/src/IcePack/Client.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/cpp/src/IcePack/Client.cpp b/cpp/src/IcePack/Client.cpp index 8c48de38e7a..12821f72609 100644 --- a/cpp/src/IcePack/Client.cpp +++ b/cpp/src/IcePack/Client.cpp @@ -147,10 +147,17 @@ Client::run(int argc, char* argv[]) return EXIT_FAILURE; } - AdminPrx admin = AdminPrx::checkedCast(communicator()->stringToProxy("IcePack/Admin@IcePack.Registry.Admin")); + AdminPrx admin = AdminPrx::checkedCast(communicator()->stringToProxy("IcePack/Admin")); if(!admin) { - cerr << appName() << ": no valid administrative endpoints" << endl; + cerr << appName() << ": no valid administrative interface" << endl; + return EXIT_FAILURE; + } + + QueryPrx query = QueryPrx::checkedCast(communicator()->stringToProxy("IcePack/Query")); + if(!query) + { + cerr << appName() << ": no valid query interface" << endl; return EXIT_FAILURE; } @@ -159,7 +166,7 @@ Client::run(int argc, char* argv[]) // Ice::UserExceptionFactoryPtr(new ExceptionFactory(communicator())); - ParserPtr parser = Parser::createParser(communicator(), admin); + ParserPtr parser = Parser::createParser(communicator(), admin, query); int status = EXIT_SUCCESS; if(argc < 2) // No files given |