* Copyright (c) 1998-2005, Index Data.
* See the file LICENSE for details.
*
- * $Id: pdu-observer.h,v 1.7 2005-06-25 15:53:19 adam Exp $
+ * $Id: pdu-observer.h,v 1.8 2005-09-22 12:40:45 adam Exp $
*/
#ifndef YAZ_PDU_OBSERVER_H
#define YAZ_PDU_OBSERVER_H
+#include <yaz/yconfig.h>
+
namespace yazpp_1 {
class IPDU_Observer;
virtual void idleTime (int timeout) = 0;
/// Get peername
virtual const char *getpeername() = 0;
+
+ virtual ~IPDU_Observable() = 0;
};
/** Protocol Data Unit Observer.
/// Make clone of observer using IPDU_Observable interface
virtual IPDU_Observer *sessionNotify(
IPDU_Observable *the_PDU_Observable, int fd) = 0;
+
+ virtual ~IPDU_Observer() = 0;
};
};
* 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.
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
* Copyright (c) 1998-2005, Index Data.
* See the file LICENSE for details.
*
- * $Id: socket-observer.h,v 1.6 2005-06-25 15:53:19 adam Exp $
+ * $Id: socket-observer.h,v 1.7 2005-09-22 12:40:45 adam Exp $
*/
#ifndef YAZ_SOCKET_OBSERVER_H
/// Specify timeout
virtual void timeoutObserver(ISocketObserver *observer,
int timeout)=0;
+ virtual ~ISocketObservable() = 0;
};
/** Socket Observer.
public:
/// Notify the observer that something happened to socket
virtual void socketNotify(int event) = 0;
+ virtual ~ISocketObserver() = 0;
};
};
* Copyright (c) 2000-2005, Index Data.
* See the file LICENSE for details.
*
- * $Id: z-server.h,v 1.8 2005-06-25 15:53:19 adam Exp $
+ * $Id: z-server.h,v 1.9 2005-09-22 12:40:45 adam Exp $
*/
#include <yaz++/z-assoc.h>
void Z_ServerUtility::create_diagnostics (
ODR odr, int error, const char *addinfo,
Z_DiagRec ***dreca, int *num);
+
+ virtual ~Z_ServerUtility() = 0;
};
class YAZ_EXPORT IServer_Facility {
Z_InitRequest *initRequest,
Z_InitResponse *initResponse) = 0;
virtual int recv(Z_Server *server, Z_APDU *apdu) = 0;
+
+ virtual ~IServer_Facility() = 0;
};
class YAZ_EXPORT Yaz_Facility_ILL : public IServer_Facility {
-## $Id: Makefile.am,v 1.26 2005-06-21 17:37:15 adam Exp $
+## $Id: Makefile.am,v 1.27 2005-09-22 12:40:45 adam Exp $
AM_CXXFLAGS = -I$(srcdir)/../include $(YAZINC)
DISTCLEANFILES = yaz++-config
-libyazcpp_la_SOURCES=yaz-socket-manager.cpp yaz-pdu-assoc.cpp \
+libyazcpp_la_SOURCES=socket-observer.cpp pdu-observer.cpp query.cpp \
+ z-server.cpp \
+ yaz-socket-manager.cpp yaz-pdu-assoc.cpp \
yaz-z-assoc.cpp yaz-z-query.cpp yaz-ir-assoc.cpp \
yaz-z-server.cpp yaz-pdu-assoc-thread.cpp yaz-z-server-sr.cpp \
yaz-z-server-ill.cpp yaz-z-server-update.cpp yaz-z-databases.cpp \
--- /dev/null
+/*
+ * Copyright (c) 1998-2005, Index Data.
+ * See the file LICENSE for details.
+ *
+ * $Id: pdu-observer.cpp,v 1.1 2005-09-22 12:40:45 adam Exp $
+ */
+
+#include <yaz++/pdu-observer.h>
+
+using namespace yazpp_1;
+
+IPDU_Observable::~IPDU_Observable()
+{
+
+}
+
+IPDU_Observer::~IPDU_Observer()
+{
+
+}
+
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
--- /dev/null
+/*
+ * Copyright (c) 1998-2000, Index Data.
+ * See the file LICENSE for details.
+ *
+ * $Id: query.cpp,v 1.1 2005-09-22 12:40:45 adam Exp $
+ */
+
+#include <yaz++/query.h>
+
+using namespace yazpp_1;
+
+Yaz_Query::~Yaz_Query()
+{
+
+}
+
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
--- /dev/null
+/*
+ * Copyright (c) 1998-2005, Index Data.
+ * See the file LICENSE for details.
+ *
+ * $Id: socket-observer.cpp,v 1.1 2005-09-22 12:40:45 adam Exp $
+ */
+
+#include <yaz++/socket-observer.h>
+
+using namespace yazpp_1;
+
+ISocketObservable::~ISocketObservable()
+{
+
+}
+
+ISocketObserver::~ISocketObserver()
+{
+
+}
+
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
--- /dev/null
+/*
+ * Copyright (c) 2000-2005, Index Data.
+ * See the file LICENSE for details.
+ *
+ * $Id: z-server.cpp,v 1.1 2005-09-22 12:40:45 adam Exp $
+ */
+
+#include <yaz++/z-server.h>
+
+using namespace yazpp_1;
+
+Z_ServerUtility::~Z_ServerUtility()
+{
+
+}
+
+IServer_Facility::~IServer_Facility()
+{
+
+}
+
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+
* Copyright (c) 2004, Index Data.
* See the file LICENSE for details.
*
- * $Id: zlint.cpp,v 1.11 2005-06-25 15:53:21 adam Exp $
+ * $Id: zlint.cpp,v 1.12 2005-09-22 12:40:45 adam Exp $
*/
#include <stdio.h>
#include <zlint.h>
+Zlint_test::~Zlint_test()
+{
+
+}
+
class Zlint_t {
public:
friend class Zlint;
/*
- * Copyright (c) 2004, Index Data.
+ * Copyright (c) 2004-2005, Index Data.
* See the file LICENSE for details.
*
- * $Id: zlint.h,v 1.4 2005-06-25 15:53:21 adam Exp $
+ * $Id: zlint.h,v 1.5 2005-09-22 12:40:45 adam Exp $
*/
#include <yaz++/z-assoc.h>
virtual Zlint_code init(Zlint *z) = 0;
virtual Zlint_code recv_gdu(Zlint *z, Z_GDU *gdu) = 0;
virtual Zlint_code recv_fail(Zlint *z, int reason) = 0;
+ virtual ~Zlint_test() = 0;
};
class Zlint_test_simple : public Zlint_test {