-/* $Id: package.cpp,v 1.11 2006-08-30 08:35:03 marc Exp $
+/* $Id: package.cpp,v 1.12 2006-08-30 08:44:58 marc Exp $
Copyright (c) 2005-2006, Index Data.
See the LICENSE file for details
{
}
+mp::Package::Package(mp::Session &session,
+ const mp::Origin &origin, const mp::Origin &target)
+ : m_session(session), m_origin(origin), m_target(target),
+ m_route_pos(0), m_data(0)
+{
+}
+
mp::Package & mp::Package::copy_filter(const Package &p)
{
delete m_route_pos;
return *this;
}
+mp::Origin mp::Package::target() const
+{
+ return m_target;
+}
+
+mp::Origin & mp::Package::target()
+{
+ return m_target;
+}
+
+mp::Package & mp::Package::target(const Origin & target)
+{
+ m_target = target;
+ return *this;
+}
+
mp::Package & mp::Package::router(const mp::Router &router)
{
m_route_pos = router.createpos();
-/* $Id: package.hpp,v 1.19 2006-08-30 08:35:03 marc Exp $
+/* $Id: package.hpp,v 1.20 2006-08-30 08:44:29 marc Exp $
Copyright (c) 2005-2006, Index Data.
See the LICENSE file for details
~Package();
- Package(metaproxy_1::Session &session, const
- metaproxy_1::Origin &origin);
+ Package(metaproxy_1::Session &session,
+ const metaproxy_1::Origin &origin);
+
+ Package(metaproxy_1::Session &session,
+ const metaproxy_1::Origin &origin,
+ const metaproxy_1::Origin &target);
Package & copy_filter(const Package &p);
/// set function - can be chained
Package & origin(const Origin & origin);
+ /// get function - right val in assignment
+ Origin target() const;
+
+ /// set function - left val in assignment
+ Origin & target();
+
+ /// set function - can be chained
+ Package & target(const Origin & target);
+
Package & router(const Router &router);
yazpp_1::GDU &request();
private:
Session m_session;
Origin m_origin;
+ Origin m_target;
RoutePos *m_route_pos;