Added pure virtual destructors for interface-like classes.
[yazpp-moved-to-github.git] / include / yaz++ / query.h
index af4f7e0..7ec2f4d 100644 (file)
@@ -2,9 +2,14 @@
  * Copyright (c) 1998-2000, Index Data.
  * See the file LICENSE for details.
  * 
- * $Id: query.h,v 1.3 2005-06-25 15:53:19 adam Exp $
+ * $Id: query.h,v 1.4 2005-09-22 12:40:45 adam Exp $
  */
 
+#ifndef YAZ_PP_QUERY_H
+#define YAZ_PP_QUERY_H
+
+#include <yaz/yconfig.h>
+
 namespace yazpp_1 {
 /** Query
     Generic Query.
@@ -13,8 +18,12 @@ class YAZ_EXPORT Yaz_Query {
  public:
     /// Print query in buffer described by str and len
     virtual void print (char *str, int len) = 0;
+    virtual ~Yaz_Query() = 0;
 };
 };
+
+#endif
+
 /*
  * Local variables:
  * c-basic-offset: 4