Ignore:
Timestamp:
2000-08-03T14:49:41+12:00 (24 years ago)
Author:
johnmcp
Message:

Relatively stable z39.50 implementation now, merged with the mgpp source.
(Still needs a decent interface and query language though...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/z3950-branch/gsdl/src/recpt/recptconfig.cpp

    r1090 r1342  
    2222 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    2323 *
    24  * $Id$
    25  *
    2624 *********************************************************************/
    27 
    28 /*
    29    $Log$
    30    Revision 1.8  2000/04/14 03:10:35  sjboddie
    31    tidied up a few issues concerning the new debug info which showed
    32    up on windows
    33 
    34    Revision 1.7  2000/04/14 02:52:06  sjboddie
    35    tidied up error messaging and set up some debugging info to be output
    36    when running library from command line
    37 
    38    Revision 1.6  2000/02/21 21:55:33  sjboddie
    39    gsdlhome now comes from gsdlsite.cfg
    40 
    41    Revision 1.5  1999/09/07 04:56:59  sjboddie
    42    added GPL notice
    43 
    44    Revision 1.4  1999/09/07 00:09:31  sjboddie
    45    now reads in both main.cfg and collect.cfg always
    46 
    47    Revision 1.3  1999/02/21 22:33:57  rjmcnab
    48 
    49    Lots of stuff :-)
    50 
    51    Revision 1.2  1999/02/08 01:28:04  rjmcnab
    52 
    53    Got the receptionist producing something using the statusaction.
    54 
    55    Revision 1.1  1999/02/05 06:50:32  rjmcnab
    56 
    57    Initial revision.
    58 
    59  */
    60 
    6125
    6226#include "recptconfig.h"
     
    8751  text_tarray cfgline;
    8852  text_t key;
     53
     54#ifdef GSDL_USE_IOS_H
    8955  ifstream confin ("gsdlsite.cfg", ios::in | ios::nocreate);
     56#else
     57  ifstream confin ("gsdlsite.cfg", ios::in);
     58#endif
    9059
    9160  if (confin) {
     
    12291  text_tarray cfgline;
    12392  text_t key;
     93
     94#ifdef GSDL_USE_IOS_H
    12495  ifstream confin ("gsdlsite.cfg", ios::in | ios::nocreate);
     96#else
     97  ifstream confin ("gsdlsite.cfg", ios::in);
     98#endif
    12599
    126100  if (confin) {
     
    153127  if (file_exists (filename)) {
    154128    char *cstr = filename.getcstr();
     129   
     130#ifdef GSDL_USE_IOS_H
    155131    ifstream confin (cstr, ios::in | ios::nocreate);
     132#else
     133    ifstream confin (cstr, ios::in);
     134#endif
     135
    156136    delete cstr;
    157137 
     
    186166    if (!filename.empty()) {
    187167      char *cstr = filename.getcstr();
     168
     169#ifdef GSDL_USE_IOS_H
    188170      ifstream confin (cstr, ios::in | ios::nocreate);
     171#else
     172      ifstream confin (cstr, ios::in);
     173#endif
     174     
    189175      delete cstr;
    190176     
Note: See TracChangeset for help on using the changeset viewer.