X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyazpp%2Fz-assoc.h;h=8be455ea5d6998cb72f0d2b88c049c81806587d4;hb=51d68e30cd2aea2ec189bee63378744a6bcf9ca5;hp=eae4f9ac6f7599603186ead2658c96ed40d4f60a;hpb=4b3585940162cf9ca65ca4a6914c0addcde50eef;p=yazpp-moved-to-github.git diff --git a/include/yazpp/z-assoc.h b/include/yazpp/z-assoc.h index eae4f9a..8be455e 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) 1998-2012 Index Data and Mike Taylor * 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