diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-09-25 15:40:21 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-09-25 15:40:21 +0000 |
commit | 6744eb871b2dbb6203f64781c510c392662015ce (patch) | |
tree | 960b6470e6894c98b3dc5dec68bd42d3f330a544 /cpp/src/Ice/Reference.h | |
parent | Added tests for proxy comparison (diff) | |
download | ice-6744eb871b2dbb6203f64781c510c392662015ce.tar.bz2 ice-6744eb871b2dbb6203f64781c510c392662015ce.tar.xz ice-6744eb871b2dbb6203f64781c510c392662015ce.zip |
Fixed a bug in proxy comparison
Diffstat (limited to 'cpp/src/Ice/Reference.h')
-rw-r--r-- | cpp/src/Ice/Reference.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cpp/src/Ice/Reference.h b/cpp/src/Ice/Reference.h index d5b564393f5..caa3a9fb169 100644 --- a/cpp/src/Ice/Reference.h +++ b/cpp/src/Ice/Reference.h @@ -43,6 +43,13 @@ public: ModeLast = ModeBatchDatagram }; + enum Type + { + Fixed, + Direct, + Indirect + }; + Mode getMode() const { return _mode; } const Ice::Identity& getIdentity() const { return _identity; } const std::string& getFacet() const { return _facet; } @@ -56,6 +63,7 @@ public: virtual RouterInfoPtr getRouterInfo() const { return 0; } virtual LocatorInfoPtr getLocatorInfo() const { return 0; } + virtual Type getType() const = 0; virtual bool getSecure() const = 0; virtual std::string getAdapterId() const = 0; virtual std::vector<EndpointIPtr> getEndpoints() const = 0; @@ -140,6 +148,7 @@ public: const std::vector<Ice::ConnectionIPtr>& getFixedConnections() const; + virtual Type getType() const; virtual bool getSecure() const; virtual std::string getAdapterId() const; virtual std::vector<EndpointIPtr> getEndpoints() const; @@ -245,6 +254,7 @@ public: DirectReference(const InstancePtr&, const Ice::CommunicatorPtr&, const Ice::Identity&, const SharedContextPtr&, const std::string&, Mode, bool, const std::vector<EndpointIPtr>&, const RouterInfoPtr&, bool); + virtual Type getType() const; virtual int getLocatorCacheTimeout() const; virtual std::string getAdapterId() const; virtual std::vector<EndpointIPtr> getEndpoints() const; @@ -286,6 +296,7 @@ public: virtual LocatorInfoPtr getLocatorInfo() const { return _locatorInfo; } + virtual Type getType() const; virtual int getLocatorCacheTimeout() const; virtual std::string getAdapterId() const; virtual std::vector<EndpointIPtr> getEndpoints() const; |