* Copyright (c) 1998-2005, Index Data.
* See the file LICENSE for details.
*
- * $Id: pdu-observer.h,v 1.8 2005-09-22 12:40:45 adam Exp $
+ * $Id: pdu-observer.h,v 1.9 2005-09-23 13:11:04 adam Exp $
*/
#ifndef YAZ_PDU_OBSERVER_H
/// Get peername
virtual const char *getpeername() = 0;
- virtual ~IPDU_Observable() = 0;
+ virtual ~IPDU_Observable();
};
/** Protocol Data Unit Observer.
virtual IPDU_Observer *sessionNotify(
IPDU_Observable *the_PDU_Observable, int fd) = 0;
- virtual ~IPDU_Observer() = 0;
+ virtual ~IPDU_Observer();
};
};
/*
- * Copyright (c) 1998-2000, Index Data.
+ * Copyright (c) 1998-2005, Index Data.
* See the file LICENSE for details.
*
- * $Id: query.h,v 1.4 2005-09-22 12:40:45 adam Exp $
+ * $Id: query.h,v 1.5 2005-09-23 13:11:04 adam Exp $
*/
#ifndef YAZ_PP_QUERY_H
public:
/// Print query in buffer described by str and len
virtual void print (char *str, int len) = 0;
- virtual ~Yaz_Query() = 0;
+ virtual ~Yaz_Query();
};
};
* Copyright (c) 1998-2005, Index Data.
* See the file LICENSE for details.
*
- * $Id: socket-observer.h,v 1.7 2005-09-22 12:40:45 adam Exp $
+ * $Id: socket-observer.h,v 1.8 2005-09-23 13:11:04 adam Exp $
*/
#ifndef YAZ_SOCKET_OBSERVER_H
The maskObserver method specifies which of these events the
observer is intertested in.
*/
-class YAZ_EXPORT ISocketObservable {
- public:
- /// Add an observer interested in socket fd
- virtual void addObserver(int fd, ISocketObserver *observer) = 0;
- /// Delete an observer
- virtual void deleteObserver(ISocketObserver *observer) = 0;
- /// Delete all observers
- virtual void deleteObservers() = 0;
- /// Specify the events that the observer is intersted in.
- virtual void maskObserver(ISocketObserver *observer, int mask) = 0;
- /// Specify timeout
- virtual void timeoutObserver(ISocketObserver *observer,
- int timeout)=0;
- virtual ~ISocketObservable() = 0;
-};
-
+ class YAZ_EXPORT ISocketObservable {
+ public:
+ /// Add an observer interested in socket fd
+ virtual void addObserver(int fd, ISocketObserver *observer) = 0;
+ /// Delete an observer
+ virtual void deleteObserver(ISocketObserver *observer) = 0;
+ /// Delete all observers
+ virtual void deleteObservers() = 0;
+ /// Specify the events that the observer is intersted in.
+ virtual void maskObserver(ISocketObserver *observer, int mask) = 0;
+ /// Specify timeout
+ virtual void timeoutObserver(ISocketObserver *observer,
+ int timeout)=0;
+ virtual ~ISocketObservable();
+ };
+
/** Socket Observer.
- The ISocketObserver interface implements a module interested
- socket events. Look for objects that implements the
- ISocketObservable interface!
+ The ISocketObserver interface implements a module interested
+ socket events. Look for objects that implements the
+ ISocketObservable interface!
*/
-class YAZ_EXPORT ISocketObserver {
- public:
- /// Notify the observer that something happened to socket
- virtual void socketNotify(int event) = 0;
- virtual ~ISocketObserver() = 0;
-};
-
+ class YAZ_EXPORT ISocketObserver {
+ public:
+ /// Notify the observer that something happened to socket
+ virtual void socketNotify(int event) = 0;
+ virtual ~ISocketObserver();
+ };
+
};
#endif
/*
* Copyright (c) 2004-2005, Index Data.
* See the file LICENSE for details.
*
- * $Id: zlint.h,v 1.5 2005-09-22 12:40:45 adam Exp $
+ * $Id: zlint.h,v 1.6 2005-09-23 13:11:04 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;
+ virtual ~Zlint_test();
};
class Zlint_test_simple : public Zlint_test {