summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ObserverHelper.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2012-08-06 09:57:02 +0200
committerBenoit Foucher <benoit@zeroc.com>2012-08-06 09:57:02 +0200
commita729c5712cee101829878b44874e37a720bfd75b (patch)
treecfa17d0c3435eef002b3f3e572ce6921cc5c1779 /cpp/src/Ice/ObserverHelper.cpp
parentUpdates (diff)
downloadice-a729c5712cee101829878b44874e37a720bfd75b.tar.bz2
ice-a729c5712cee101829878b44874e37a720bfd75b.tar.xz
ice-a729c5712cee101829878b44874e37a720bfd75b.zip
Missing files
Diffstat (limited to 'cpp/src/Ice/ObserverHelper.cpp')
-rw-r--r--cpp/src/Ice/ObserverHelper.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/cpp/src/Ice/ObserverHelper.cpp b/cpp/src/Ice/ObserverHelper.cpp
new file mode 100644
index 00000000000..6507da82287
--- /dev/null
+++ b/cpp/src/Ice/ObserverHelper.cpp
@@ -0,0 +1,32 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2012 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+#include <Ice/ObserverHelper.h>
+#include <Ice/Observer.h>
+
+using namespace IceInternal;
+
+void
+ObserverHelper::attach(const Ice::Instrumentation::ObserverPtr& observer)
+{
+ observer->attach();
+}
+
+void
+ObserverHelper::detach(const Ice::Instrumentation::ObserverPtr& observer)
+{
+ observer->attach();
+}
+
+void
+ObserverHelper::failed(const Ice::Instrumentation::ObserverPtr& observer, const std::string& exceptionName)
+{
+ observer->failed(exceptionName);
+}
+