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
Work on filter log. Added support for init-options logging. Category
[metaproxy-moved-to-github.git]
/
src
/
package.hpp
diff --git
a/src/package.hpp
b/src/package.hpp
index
b104c85
..
987a3c8
100644
(file)
--- a/
src/package.hpp
+++ b/
src/package.hpp
@@
-1,7
+1,7
@@
-/* $Id: package.hpp,v 1.11 2006-01-04 11:19:04 adam Exp $
- Copyright (c) 2005, Index Data.
+/* $Id: package.hpp,v 1.18 2006-06-19 23:54:02 adam Exp $
+ Copyright (c) 2005-2006, Index Data.
-%LICENSE%
+ See the LICENSE file for details
*/
#ifndef YP2_PACKAGE_HPP
*/
#ifndef YP2_PACKAGE_HPP
@@
-9,13
+9,13
@@
#include <iostream>
#include <stdexcept>
#include <iostream>
#include <stdexcept>
-#include <yaz++/gdu.h>
+#include <yazpp/gdu.h>
#include "router.hpp"
#include "filter.hpp"
#include "session.hpp"
#include "router.hpp"
#include "filter.hpp"
#include "session.hpp"
-namespace yp2 {
+namespace metaproxy_1 {
class Origin {
enum origin_t {
class Origin {
enum origin_t {
@@
-28,20
+28,26
@@
namespace yp2 {
public:
Origin() : type(API) {};
};
public:
Origin() : type(API) {};
};
-
+
class Package {
public:
class Package {
public:
- Package() ;
+ Package();
+
+ ~Package();
- Package(yp2::Session &session, yp2::Origin &origin);
+ Package(metaproxy_1::Session &session, const
+ metaproxy_1::Origin &origin);
Package & copy_filter(const Package &p);
/// send Package to it's next Filter defined in Router
void move();
Package & copy_filter(const Package &p);
/// send Package to it's next Filter defined in Router
void move();
+
+ /// send Package to other route
+ void move(std::string route);
/// access session - left val in assignment
/// access session - left val in assignment
- yp2::Session & session();
+ metaproxy_1::Session & session();
/// get function - right val in assignment
int data() const;
/// get function - right val in assignment
int data() const;
@@
-73,9
+79,9
@@
namespace yp2 {
private:
Session m_session;
Origin m_origin;
private:
Session m_session;
Origin m_origin;
-
- const filter::Base *m_filter;
- const Router *m_router;
+
+ RoutePos *m_route_pos;
+
int m_data;
yazpp_1::GDU m_request_gdu;
int m_data;
yazpp_1::GDU m_request_gdu;