X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2B%2B%2Fgduqueue.h;fp=include%2Fyaz%2B%2B%2Fgduqueue.h;h=e05ec4596e80bfee3e30083f558fbcdb3c7e5432;hb=b03c09ff93152fb9387281ad5431e6b4d44f16cd;hp=0000000000000000000000000000000000000000;hpb=594ba02c8c039a6570451da08e3461f22a7d0d11;p=yazpp-moved-to-github.git diff --git a/include/yaz++/gduqueue.h b/include/yaz++/gduqueue.h new file mode 100644 index 0000000..e05ec45 --- /dev/null +++ b/include/yaz++/gduqueue.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) 1998-2005, Index Data. + * See the file LICENSE for details. + * + * $Id: gduqueue.h,v 1.1 2005-10-13 09:56:38 adam Exp $ + */ + +#ifndef YAZPP_GDUQUEUE_INCLUDED +#define YAZPP_GDUQUEUE_INCLUDED + +#include + +namespace yazpp_1 { + class GDU; + class GDUQueue_List { + friend class GDUQueue; + private: + GDU *m_item; + GDUQueue_List *m_next; + }; + + class GDUQueue { + public: + GDUQueue(); + ~GDUQueue(); + void clear(); + void enqueue(GDU *gdu); + GDU *dequeue(); + int size(); + private: + GDUQueue_List *m_list; + }; +}; + +#endif +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +