projects
/
yazpp-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added new class GDU.
[yazpp-moved-to-github.git]
/
src
/
yaz-z-query.cpp
diff --git
a/src/yaz-z-query.cpp
b/src/yaz-z-query.cpp
index
1f178cc
..
641934c
100644
(file)
--- a/
src/yaz-z-query.cpp
+++ b/
src/yaz-z-query.cpp
@@
-2,12
+2,14
@@
* Copyright (c) 1998-2003, Index Data.
* See the file LICENSE for details.
*
* Copyright (c) 1998-2003, Index Data.
* See the file LICENSE for details.
*
- * $Id: yaz-z-query.cpp,v 1.14 2003-12-16 14:17:01 adam Exp $
+ * $Id: yaz-z-query.cpp,v 1.16 2005-06-02 06:40:21 adam Exp $
*/
#include <yaz++/z-query.h>
#include <yaz/pquery.h>
*/
#include <yaz++/z-query.h>
#include <yaz/pquery.h>
+using namespace yazpp_1;
+
Yaz_Z_Query::Yaz_Z_Query()
{
odr_encode = odr_createmem (ODR_ENCODE);
Yaz_Z_Query::Yaz_Z_Query()
{
odr_encode = odr_createmem (ODR_ENCODE);
@@
-179,10
+181,9
@@
int Yaz_Z_Query::rpn2pquery(Z_RPNStructure *s, WRBUF buf)
WRBUF Yaz_Z_Query::zquery2pquery(Z_Query *q)
{
WRBUF Yaz_Z_Query::zquery2pquery(Z_Query *q)
{
- WRBUF buf = wrbuf_alloc();
-
if (q->which != Z_Query_type_1 && q->which != Z_Query_type_101)
return 0;
if (q->which != Z_Query_type_1 && q->which != Z_Query_type_101)
return 0;
+ WRBUF buf = wrbuf_alloc();
if (q->u.type_1->attributeSetId) {
/* Output attribute set ID */
wrbuf_puts(buf, "@attrset ");
if (q->u.type_1->attributeSetId) {
/* Output attribute set ID */
wrbuf_puts(buf, "@attrset ");