X-Git-Url: http://git.indexdata.com/?p=yazpp-moved-to-github.git;a=blobdiff_plain;f=include%2Fyazpp%2Fz-assoc.h;h=a13f379cce473a454f652b7cced8520e72b8a02a;hp=eae4f9ac6f7599603186ead2658c96ed40d4f60a;hb=82d0b6ce2accdbe9987d0b8b4e6e818514455e22;hpb=4b3585940162cf9ca65ca4a6914c0addcde50eef diff --git a/include/yazpp/z-assoc.h b/include/yazpp/z-assoc.h index eae4f9a..a13f379 100644 --- a/include/yazpp/z-assoc.h +++ b/include/yazpp/z-assoc.h @@ -1,5 +1,5 @@ /* This file is part of the yazpp toolkit. - * Copyright (C) 1998-2008 Index Data and Mike Taylor + * Copyright (C) Index Data * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -34,13 +34,15 @@ #include namespace yazpp_1 { + class Z_Assoc_priv; + /** Z39.50 Assocation. This object implements the client - and server role of a generic Z39.50 Association. */ class YAZ_EXPORT Z_Assoc : public IPDU_Observer { - public: - /// Create object using the PDU Observer specified + public: + /// Create object using the PDU Observer specified Z_Assoc(IPDU_Observable *the_PDU_Observable); /// Destroy assocation and close PDU Observer virtual ~Z_Assoc(); @@ -98,19 +100,8 @@ class YAZ_EXPORT Z_Assoc : public IPDU_Observer { const char *get_hostname(); int set_APDU_yazlog(int v); - - private: - static int yaz_init_flag; - static int yaz_init_func(); - IPDU_Observable *m_PDU_Observable; - ODR m_odr_in; - ODR m_odr_out; - ODR m_odr_print; - int m_log; - FILE *m_APDU_file; - char *m_APDU_fname; - char *m_hostname; - int m_APDU_yazlog; + private: + Z_Assoc_priv *m_p; }; }; @@ -118,6 +109,7 @@ class YAZ_EXPORT Z_Assoc : public IPDU_Observer { /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab