New option -o <level> that optimization level (0 = no optimization).
[yazpp-moved-to-github.git] / include / yaz++ / yaz-z-databases.h
diff --git a/include/yaz++/yaz-z-databases.h b/include/yaz++/yaz-z-databases.h
new file mode 100644 (file)
index 0000000..f750c4d
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2001, Index Data.
+ * See the file LICENSE for details.
+ * 
+ * $Id: yaz-z-databases.h,v 1.1 2001-11-06 17:08:05 adam Exp $
+ */
+
+#include <yaz/proto.h>
+
+/** Z39.50 Databases list
+ */
+class YAZ_EXPORT Yaz_Z_Databases {
+public:
+/// Make Query from rpn string
+    Yaz_Z_Databases();
+    ~Yaz_Z_Databases();
+    void set (int num, const char **db);
+    void get (NMEM n, int *num, char ***db);
+    void get (ODR o, int *num, char ***db);
+    int match (Yaz_Z_Databases &db);
+    int match (int num, const char **db);
+ private:
+    char **m_list;
+    int m_num;
+    NMEM nmem;
+};