X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=include%2Fyaz-ir-assoc.h;h=bd1ea66a6ebb7584550881c11c7ed338e398cec6;hb=316df82985a4207a7d52e7d88567bf26d5c2c7c8;hp=ad7efbbde0ccf9754bc2500135cd2dcf01b5f9b7;hpb=c6e5ad789740135af3558298f6e2014ae99ee7dd;p=yazpp-moved-to-github.git diff --git a/include/yaz-ir-assoc.h b/include/yaz-ir-assoc.h index ad7efbb..bd1ea66 100644 --- a/include/yaz-ir-assoc.h +++ b/include/yaz-ir-assoc.h @@ -1,12 +1,8 @@ /* - * Copyright (c) 1998-1999, Index Data. + * Copyright (c) 1998-2000, Index Data. * See the file LICENSE for details. - * Sebastian Hammer, Adam Dickmeiss * - * $Log: yaz-ir-assoc.h,v $ - * Revision 1.5 1999-04-09 11:47:23 adam - * Added object Yaz_Z_Assoc. Much more functional client. - * + * $Id: yaz-ir-assoc.h,v 1.11 2000-09-08 10:23:42 adam Exp $ */ #include @@ -48,23 +44,20 @@ class YAZ_EXPORT Yaz_IR_Assoc: public Yaz_Z_Assoc { int get_lastReceived(); void set_lastReceived(int lastReceived); - /// OtherInformation - Z_OtherInformationUnit *set_otherInformation( - Z_OtherInformation **otherInformationP, int *oid, - int categoryValue); - void set_otherInformationString (Z_OtherInformation **otherInformationP, - int *oid, int categoryValue, - const char *str); - /// Settings void set_proxy(const char *str); const char *get_proxy(); const char *get_host(); + void set_cookie(const char *str); + const char *get_cookie(); + /// Send Services - int send_initRequest(); - int send_searchRequest(Yaz_Z_Query *query); - int send_presentRequest(int start, int number); + int send_initRequest(char* pRefId=NULL); + int send_searchRequest(Yaz_Z_Query *query, char* pResultSetId = NULL, char* pRefId = NULL); + int send_presentRequest(int start, int number, char* pResultSetId = NULL, char* pRefId = NULL); + int send_deleteResultSetRequest(char* pResultSetId = 0, char* pRefId = 0); + /// Recv Services virtual void recv_initRequest(Z_InitRequest *initRequest); virtual void recv_initResponse(Z_InitResponse *initResponse); @@ -75,9 +68,11 @@ class YAZ_EXPORT Yaz_IR_Assoc: public Yaz_Z_Assoc { private: char *m_proxy; char *m_host; + char *m_cookie; int m_num_databaseNames; char **m_databaseNames; int m_preferredRecordSyntax; Z_ElementSetNames *m_elementSetNames; int m_lastReceived; + int m_log; };