summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Reference.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/Reference.h')
-rw-r--r--cpp/src/Ice/Reference.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/cpp/src/Ice/Reference.h b/cpp/src/Ice/Reference.h
index 9d62c2406a5..77f5bc2b9c0 100644
--- a/cpp/src/Ice/Reference.h
+++ b/cpp/src/Ice/Reference.h
@@ -25,6 +25,7 @@
#include <Ice/RouterInfoF.h>
#include <Ice/LocatorInfoF.h>
#include <Ice/ObjectAdapterF.h>
+#include <Ice/ConnectionF.h>
#include <Ice/Identity.h>
namespace IceInternal
@@ -51,12 +52,12 @@ public:
bool operator<(const Reference&) const;
//
- // Marshal the reference
+ // Marshal the reference.
//
void streamWrite(BasicStream*) const;
//
- // Convert the reference to its string form
+ // Convert the reference to its string form.
//
std::string toString() const;
@@ -96,9 +97,14 @@ public:
ReferencePtr changeDefault() const;
//
+ // Get a suitable connection for this reference.
+ //
+ ConnectionPtr getConnection() const;
+
+ //
// Filter endpoints based on criteria from this reference.
//
- std::vector<EndpointPtr> filterEndpoints(const std::vector<EndpointPtr>&);
+ std::vector<EndpointPtr> filterEndpoints(const std::vector<EndpointPtr>&) const;
private: