1 /* $Id: sru_util.hpp,v 1.3 2006-10-03 07:57:40 marc Exp $
2 Copyright (c) 2005-2006, Index Data.
4 See the LICENSE file for details
7 #ifndef YP2_SDU_UTIL_HPP
8 #define YP2_SDU_UTIL_HPP
10 //#include <yaz/zgdu.h>
11 //#include <yaz/z-core.h>
19 std::ostream& operator<<(std::ostream& os, Z_SRW_PDU& srw_pdu);
24 namespace metaproxy_1 {
30 enum SRU_protocol_type { SRU_NONE, SRU_GET, SRU_POST, SRU_SOAP};
31 typedef const int SRU_query_type;
32 union SRW_query {char * cql; char * xcql; char * pqf;};
34 //bool decode(const Z_HTTP_Request &http_req);
35 SRU_protocol_type protocol(const Z_HTTP_Request &http_req) const;
37 SRU_protocol_type m_protocol;
38 std::string m_charset;
39 std::string m_stylesheet;
48 * indent-tabs-mode: nil
49 * c-file-style: "stroustrup"
51 * vim: shiftwidth=4 tabstop=8 expandtab