summaryrefslogtreecommitdiff
path: root/cpp/include/Ice/ObserverHelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/Ice/ObserverHelper.h')
-rw-r--r--cpp/include/Ice/ObserverHelper.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/cpp/include/Ice/ObserverHelper.h b/cpp/include/Ice/ObserverHelper.h
index be7b4475aab..16856504345 100644
--- a/cpp/include/Ice/ObserverHelper.h
+++ b/cpp/include/Ice/ObserverHelper.h
@@ -12,6 +12,7 @@
#include <Ice/Observer.h>
#include <Ice/ProxyF.h>
+#include <Ice/InstanceF.h>
namespace IceInternal
{
@@ -100,11 +101,13 @@ class ICE_API InvocationObserver : public ObserverHelperT<Ice::Instrumentation::
public:
InvocationObserver(IceProxy::Ice::Object*, const std::string&, const Ice::Context*);
+ InvocationObserver(Instance*, const std::string&);
InvocationObserver()
{
}
void attach(IceProxy::Ice::Object*, const std::string&, const Ice::Context*);
+ void attach(Instance*, const std::string&);
void retried()
{
@@ -115,14 +118,18 @@ public:
}
::Ice::Instrumentation::ObserverPtr
- getRemoteObserver(const Ice::ConnectionPtr& con)
+ getRemoteObserver(const Ice::ConnectionInfoPtr& con, const Ice::EndpointPtr& endpt)
{
if(_observer)
{
- return _observer->getRemoteObserver(con);
+ return _observer->getRemoteObserver(con, endpt);
}
return 0;
}
+
+private:
+
+ using ObserverHelperT<Ice::Instrumentation::InvocationObserver>::attach;
};
}