projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix various link to reference. Added partinfo element for reference
[metaproxy-moved-to-github.git]
/
src
/
package.hpp
diff --git
a/src/package.hpp
b/src/package.hpp
index
987a3c8
..
bbefb39
100644
(file)
--- a/
src/package.hpp
+++ b/
src/package.hpp
@@
-1,4
+1,4
@@
-/* $Id: package.hpp,v 1.18 2006-06-19 23:54:02 adam Exp $
+/* $Id: package.hpp,v 1.25 2006-09-26 13:02:50 marc Exp $
Copyright (c) 2005-2006, Index Data.
See the LICENSE file for details
Copyright (c) 2005-2006, Index Data.
See the LICENSE file for details
@@
-7,27
+7,26
@@
#ifndef YP2_PACKAGE_HPP
#define YP2_PACKAGE_HPP
#ifndef YP2_PACKAGE_HPP
#define YP2_PACKAGE_HPP
-#include <iostream>
-#include <stdexcept>
+#include <iosfwd>
+
#include <yazpp/gdu.h>
#include "router.hpp"
#include "filter.hpp"
#include "session.hpp"
#include <yazpp/gdu.h>
#include "router.hpp"
#include "filter.hpp"
#include "session.hpp"
+#include "origin.hpp"
+
+namespace metaproxy_1 {
+ class Package;
+}
+
+
+namespace std
+{
+ std::ostream& operator<<(std::ostream& os, metaproxy_1::Package& p);
+}
namespace metaproxy_1 {
namespace metaproxy_1 {
-
- class Origin {
- enum origin_t {
- API,
- UNIX,
- TCPIP
- } type;
- std::string address; // UNIX+TCPIP
- int port; // TCPIP only
- public:
- Origin() : type(API) {};
- };
class Package {
public:
class Package {
public:
@@
-35,9
+34,10
@@
namespace metaproxy_1 {
~Package();
~Package();
- Package(metaproxy_1::Session &session, const
- metaproxy_1::Origin &origin);
+ Package(metaproxy_1::Session &session,
+ const metaproxy_1::Origin &origin);
+ /// shallow copy constructor which only copies the filter chain info
Package & copy_filter(const Package &p);
/// send Package to it's next Filter defined in Router
Package & copy_filter(const Package &p);
/// send Package to it's next Filter defined in Router
@@
-50,15
+50,6
@@
namespace metaproxy_1 {
metaproxy_1::Session & session();
/// get function - right val in assignment
metaproxy_1::Session & session();
/// get function - right val in assignment
- int data() const;
-
- /// set function - left val in assignment
- int & data();
-
- /// set function - can be chained
- Package & data(const int & data);
-
- /// get function - right val in assignment
Origin origin() const;
/// set function - left val in assignment
Origin origin() const;
/// set function - left val in assignment
@@
-67,6
+58,7
@@
namespace metaproxy_1 {
/// set function - can be chained
Package & origin(const 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();
Package & router(const Router &router);
yazpp_1::GDU &request();
@@
-82,13
+74,15
@@
namespace metaproxy_1 {
RoutePos *m_route_pos;
RoutePos *m_route_pos;
- int m_data;
+ //int m_data;
yazpp_1::GDU m_request_gdu;
yazpp_1::GDU m_response_gdu;
};
}
yazpp_1::GDU m_request_gdu;
yazpp_1::GDU m_response_gdu;
};
}
+
+
#endif
/*
* Local variables:
#endif
/*
* Local variables: