diff options
Diffstat (limited to 'cpp/src/IceStorm/LinkProxy.cpp')
-rw-r--r-- | cpp/src/IceStorm/LinkProxy.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/cpp/src/IceStorm/LinkProxy.cpp b/cpp/src/IceStorm/LinkProxy.cpp new file mode 100644 index 00000000000..1dd6ac49a14 --- /dev/null +++ b/cpp/src/IceStorm/LinkProxy.cpp @@ -0,0 +1,34 @@ +// ********************************************************************** +// +// Copyright (c) 2003 +// ZeroC, Inc. +// Billerica, MA, USA +// +// All Rights Reserved. +// +// Ice is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License version 2 as published by +// the Free Software Foundation. +// +// ********************************************************************** + +#include <IceStorm/LinkProxy.h> + +using namespace std; + +IceStorm::LinkProxy::LinkProxy(const TopicLinkPrx& obj) : + _obj(obj) +{ +} + +Ice::ObjectPrx +IceStorm::LinkProxy::proxy() const +{ + return _obj; +} + +void +IceStorm::LinkProxy::deliver(const EventPtr& event) +{ + _obj->forward(event->op, event->mode, event->data, event->context); +} |