Partial revert f1593e3 : add Origin assignment method
[metaproxy-moved-to-github.git] / include / metaproxy / package.hpp
index 69fbcb7..735f11d 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of Metaproxy.
-   Copyright (C) 2005-2010 Index Data
+   Copyright (C) 2005-2011 Index Data
 
 Metaproxy is free software; you can redistribute it and/or modify it under
 the terms of the GNU General Public License as published by the Free
@@ -35,7 +35,7 @@ namespace metaproxy_1 {
 
 namespace std 
 {
-    std::ostream& operator<<(std::ostream& os, metaproxy_1::Package& p);
+    std::ostream& operator<<(std::ostream& os, const metaproxy_1::Package& p);
 }
 
 namespace metaproxy_1 {
@@ -63,14 +63,11 @@ 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 & origin(const Origin & origin);
-
-        /// set function - can be chained
         Package & router(const Router &router);
 
         yazpp_1::GDU &request();
@@ -79,7 +76,8 @@ namespace metaproxy_1 {
                 
         /// get function - right val in assignment
         Session session() const;
-        
+
+        void log(const char *module, int level, const char *fmt, ...) const;
     private:
         Session m_session;
         Origin m_origin;