Check for multiple inclusion of z-query.h.
[yazpp-moved-to-github.git] / include / yaz++ / z-query.h
index 31fcaa9..885fde3 100644 (file)
@@ -1,10 +1,13 @@
 /*
- * Copyright (c) 1998-2000, Index Data.
+ * Copyright (c) 1998-2005, Index Data.
  * See the file LICENSE for details.
  * 
- * $Id: z-query.h,v 1.4 2005-06-02 06:40:21 adam Exp $
+ * $Id: z-query.h,v 1.7 2005-10-05 12:06:45 adam Exp $
  */
 
+#ifndef YAZPP_Z_QUERY_INCLUDED
+#define YAZPP_Z_QUERY_INCLUDED
+
 #include <yaz/proto.h>
 #include <yaz++/query.h>
 
@@ -28,15 +31,25 @@ class YAZ_EXPORT Yaz_Z_Query : public Yaz_Query {
     void print(char *str, int len);
     /// match query
     int match(Yaz_Z_Query *other);
+    /// Copy
+    Yaz_Z_Query &operator=(const Yaz_Z_Query &);
+    /// Assign RPN string to it
+    Yaz_Z_Query& Yaz_Z_Query::operator=(const char *rpn);
  private:
     char *m_buf;
     int m_len;
     ODR odr_decode;
     ODR odr_encode;
     ODR odr_print;
-    void oid2str(Odr_oid *o, WRBUF buf);
-    int rpn2pquery(Z_RPNStructure *s, WRBUF buf);
     WRBUF zquery2pquery(Z_Query *q);
-    void pr_term(WRBUF wbuf, char *buf, int len);
 };
 };
+#endif
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+