Another and hopefully, last, YAZ OID DB update
[yazpp-moved-to-github.git] / include / yazpp / gduqueue.h
1 /*
2  * Copyright (c) 1998-2005, Index Data.
3  * See the file LICENSE for details.
4  * 
5  * $Id: gduqueue.h,v 1.2 2006-03-30 14:15:58 adam Exp $
6  */
7
8 #ifndef YAZPP_GDUQUEUE_INCLUDED
9 #define YAZPP_GDUQUEUE_INCLUDED
10
11 #include <yaz/yconfig.h>
12
13 namespace yazpp_1 {
14     class GDU;
15     class YAZ_EXPORT GDUQueue_List {
16         friend class GDUQueue;
17     private:
18         GDU *m_item;
19         GDUQueue_List *m_next;
20     };
21
22     class YAZ_EXPORT GDUQueue {
23     public:
24         GDUQueue();
25         ~GDUQueue();
26         void clear();
27         void enqueue(GDU *gdu);
28         GDU *dequeue();
29         int size();
30     private:
31         GDUQueue_List *m_list;
32     };
33 };
34
35 #endif
36 /*
37  * Local variables:
38  * c-basic-offset: 4
39  * indent-tabs-mode: nil
40  * End:
41  * vim: shiftwidth=4 tabstop=8 expandtab
42  */
43