From b13554ae4822e865e35847af7446fd026e37a6c4 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 26 Oct 2011 20:27:07 +0200 Subject: [PATCH] Partial revert f1593e3 : add Origin assignment method If not, we can't assign origin to package. --- include/metaproxy/package.hpp | 3 +++ src/package.cpp | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/include/metaproxy/package.hpp b/include/metaproxy/package.hpp index d256bc7..735f11d 100644 --- a/include/metaproxy/package.hpp +++ b/include/metaproxy/package.hpp @@ -63,6 +63,9 @@ namespace metaproxy_1 { /// get function - right val in assignment Origin origin() const; + + /// set function - left val in assignment + Origin & origin(); /// set function - can be chained Package & router(const Router &router); diff --git a/src/package.cpp b/src/package.cpp index f5fa411..23c745a 100644 --- a/src/package.cpp +++ b/src/package.cpp @@ -81,7 +81,12 @@ mp::Origin mp::Package::origin() const { return m_origin; } - + +mp::Origin & mp::Package::origin() +{ + return m_origin; +} + mp::Package & mp::Package::router(const mp::Router &router) { m_route_pos = router.createpos(); -- 1.7.10.4