Added object Yaz_Z_Assoc. Much more functional client.
[yazpp-moved-to-github.git] / include / yaz-z-query.h
1 /*
2  * Copyright (c) 1998-1999, Index Data.
3  * See the file LICENSE for details.
4  * Sebastian Hammer, Adam Dickmeiss
5  * 
6  * $Log: yaz-z-query.h,v $
7  * Revision 1.2  1999-04-09 11:47:23  adam
8  * Added object Yaz_Z_Assoc. Much more functional client.
9  *
10  * Revision 1.1  1999/03/23 14:17:57  adam
11  * More work on timeout handling. Work on yaz-client.
12  *
13  */
14
15 #include <proto.h>
16 #include <yaz-query.h>
17
18 /** Z39.50 Query
19     RPN, etc.
20 */
21 class YAZ_EXPORT Yaz_Z_Query : public Yaz_Query {
22  public:
23     /// Make Query from rpn string
24     Yaz_Z_Query();
25     /// Delete Query
26     virtual ~Yaz_Z_Query();
27     /// Set RPN
28     int set_rpn (const char *rpn);
29     /// Set Z Query
30     void set_Z_Query (Z_Query *z_query);
31     /// Get Z Query
32     Z_Query *get_Z_Query ();
33     /// print query
34     void print(char *str, int len);
35  private:
36     char *buf;
37     int len;
38     ODR odr_decode;
39     ODR odr_encode;
40 };