X-Git-Url: http://git.indexdata.com/?p=yazpp-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2B%2B%2Fgdu.h;fp=include%2Fyaz%2B%2B%2Fgdu.h;h=5d20b91cd7855753173778835df62fdbb20313a1;hp=7512bf057769073a1d56693068d6384341a6dbc9;hb=b03c09ff93152fb9387281ad5431e6b4d44f16cd;hpb=594ba02c8c039a6570451da08e3461f22a7d0d11 diff --git a/include/yaz++/gdu.h b/include/yaz++/gdu.h index 7512bf0..5d20b91 100644 --- a/include/yaz++/gdu.h +++ b/include/yaz++/gdu.h @@ -2,7 +2,7 @@ * Copyright (c) 1998-2005, Index Data. * See the file LICENSE for details. * - * $Id: gdu.h,v 1.2 2005-06-25 15:53:19 adam Exp $ + * $Id: gdu.h,v 1.3 2005-10-13 09:56:38 adam Exp $ */ #ifndef YAZPP_GDU_INCLUDED @@ -12,38 +12,21 @@ #include namespace yazpp_1 { - class YAZ_EXPORT GDU { public: + GDU(const GDU &); GDU(Z_GDU *gdu); GDU(Z_APDU *apdu); + GDU(); ~GDU(); - Z_GDU *get(); - void extract_odr_to(ODR dst); + GDU &operator=(const GDU &); + Z_GDU *get() const; + void move_away_gdu(ODR dst, Z_GDU **gdu); private: void base(Z_GDU *gdu, ODR o); Z_GDU *m_gdu; ODR m_decode; }; - - 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