summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/Client.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2015-02-02 10:31:15 +0100
committerBenoit Foucher <benoit@zeroc.com>2015-02-02 10:31:15 +0100
commitbb209f348a08f27bbb561e4d5a93a0b2cbdaaf50 (patch)
tree66404a0a370f2708cc60f4a3183c0d10a5e5df04 /cpp/src/IceGrid/Client.cpp
parentAdded support for registration of plugin factories (diff)
downloadice-bb209f348a08f27bbb561e4d5a93a0b2cbdaaf50.tar.bz2
ice-bb209f348a08f27bbb561e4d5a93a0b2cbdaaf50.tar.xz
ice-bb209f348a08f27bbb561e4d5a93a0b2cbdaaf50.zip
Fixed IceGrid discovery plugin to not depend on IceGrid::Locator directly
Diffstat (limited to 'cpp/src/IceGrid/Client.cpp')
-rw-r--r--cpp/src/IceGrid/Client.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp/src/IceGrid/Client.cpp b/cpp/src/IceGrid/Client.cpp
index 9d7eb3229c8..5a301c139b4 100644
--- a/cpp/src/IceGrid/Client.cpp
+++ b/cpp/src/IceGrid/Client.cpp
@@ -69,10 +69,10 @@ class LookupReplyI : public LookupReply, private IceUtil::Monitor<IceUtil::Mutex
public:
virtual void
- foundLocator(const IceGrid::LocatorPrx& locator, const Ice::Current&)
+ foundLocator(const Ice::LocatorPrx& locator, const Ice::Current&)
{
Lock sync(*this);
- for(vector<IceGrid::LocatorPrx>::iterator p = _locators.begin(); p != _locators.end(); ++p)
+ for(vector<Ice::LocatorPrx>::iterator p = _locators.begin(); p != _locators.end(); ++p)
{
if((*p)->ice_getIdentity() == locator->ice_getIdentity())
{
@@ -105,7 +105,7 @@ public:
notify();
}
- vector<IceGrid::LocatorPrx>
+ vector<Ice::LocatorPrx>
getLocators()
{
Lock sync(*this);
@@ -128,7 +128,7 @@ public:
private:
- vector<IceGrid::LocatorPrx> _locators;
+ vector<Ice::LocatorPrx> _locators;
};
typedef IceUtil::Handle<LookupReplyI> LookupReplyIPtr;
@@ -616,12 +616,12 @@ Client::run(StringSeq& originalArgs)
}
adapter->destroy();
- vector<IceGrid::LocatorPrx> locators = reply->getLocators();
+ vector<Ice::LocatorPrx> locators = reply->getLocators();
if(locators.size() > 1)
{
- cout << "found " << locators.size() << " IceGrid locators:" << endl;
+ cout << "found " << locators.size() << " Ice locators:" << endl;
unsigned int num = 0;
- for(vector<IceGrid::LocatorPrx>::const_iterator p = locators.begin(); p != locators.end(); ++p)
+ for(vector<Ice::LocatorPrx>::const_iterator p = locators.begin(); p != locators.end(); ++p)
{
cout << ++num << ": proxy = `" << *p << "'" <<endl;
}