disable-zoom configure option
[yazpp-moved-to-github.git] / zoom / zquery.cpp
index 77c0d93..5b173c5 100644 (file)
@@ -1,8 +1,8 @@
-// $Header: /home/cvsroot/yaz++/zoom/zquery.cpp,v 1.1 2002-08-08 13:31:54 mike Exp $
+// $Header: /home/cvsroot/yaz++/zoom/zquery.cpp,v 1.4 2002-11-30 22:33:21 mike Exp $
 
 // Z39.50 Query classes
 
-#include "zoom++.h"
+#include "zoom.h"
 
 
 namespace ZOOM {
@@ -13,11 +13,11 @@ namespace ZOOM {
 
 
 
-    prefixQuery::prefixQuery(const char *pqn) {
+    prefixQuery::prefixQuery(const string &pqn) {
        q = ZOOM_query_create();
-       if (ZOOM_query_prefix(q, pqn) == -1) {
+       if (ZOOM_query_prefix(q, pqn.c_str()) == -1) {
            ZOOM_query_destroy(q);
-           throw queryError(queryError::PREFIX, pqn);
+           throw queryException(queryException::PREFIX, pqn);
        }
     }
 
@@ -43,7 +43,7 @@ namespace ZOOM {
 
 
 
-    CCLQuery::CCLQuery(const char *ccl, void *qualset) {
+    CCLQuery::CCLQuery(const string &ccl, void *qualset) {
        throw "Oops.  No CCL support in ZOOM-C yet.  Sorry.";
     }