/* * Copyright (c) 1995, 1996 Gunther Schadow. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef HL7_HOSTENT_H_ #define HL7_HOSTENT_H_ #include #pragma interface #include "fBitSet.h" class HL7hostent { const char *remote_host; const char *connect_id; const char *SenApp; const char *SenFac; const char *RecApp; const char *RecFac; BitSet allowed; public: HL7hostent(); HL7hostent(const HL7hostent &); ~HL7hostent(); const HL7hostent &operator = (const HL7hostent &); result getent(const char *remote_host, const char *connect_id = NULL, const char *SenApp = NULL, const char *SenFac = NULL, const char *RecApp = NULL, const char *RecFac = NULL); result getent(void); const char *getRemote_host(); const char *getConnect_id(); const char *getSenApp(); const char *getSenFac(); const char *getRecApp(); const char *getRecFac(); const BitSet &getAllowed(); private: void parse_line(char*); }; #ifndef OUTLINE # include "HL7hostent.icc" #endif #endif /* ! HL7_HOSTENT_H_ */