diff options
Diffstat (limited to 'cpp/src/Ice/ObserverHelper.cpp')
-rw-r--r-- | cpp/src/Ice/ObserverHelper.cpp | 32 |
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); +} + |