Revision 1106 trunk/src/tools99/cifstrem.h

cifstrem.h (revision 1106)
2 2
 * $Id$
3 3
 *
4 4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California 
6
 * 
5
 * Copyright (c) 2008-2012 Regents of the University of California
6
 *
7 7
 * ADModelbuilder and associated libraries and documentations are
8 8
 * provided under the general terms of the "BSD" license.
9 9
 *
10 10
 * License:
11
 * 
11
 *
12 12
 * Redistribution and use in source and binary forms, with or without
13 13
 * modification, are permitted provided that the following conditions are
14 14
 * met:
15
 * 
15
 *
16 16
 * 1. Redistributions of source code must retain the above copyright
17 17
 * notice, this list of conditions and the following disclaimer.
18
 * 
18
 *
19 19
 * 2.  Redistributions in binary form must reproduce the above copyright
20 20
 * notice, this list of conditions and the following disclaimer in the
21 21
 * documentation and/or other materials provided with the distribution.
22
 * 
22
 *
23 23
 * 3.  Neither the name of the  University of California, Otter Research,
24 24
 * nor the ADMB Foundation nor the names of its contributors may be used
25 25
 * to endorse or promote products derived from this software without
26 26
 * specific prior written permission.
27
 * 
27
 *
28 28
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29 29
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30 30
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
......
89 89
#if !defined(linux) && !defined(__CYGWIN32__) && !defined(__MINGW32__)
90 90
  #include <strstrea.h>
91 91
#else
92
#  if (__GNUC__  >= 3) 
92
#  if (__GNUC__  >= 3)
93 93
#    include <sstream>
94 94
#  else
95 95
#    include <strstream.h>
......
139 139
  streambuf* bp;
140 140
#endif
141 141
#if defined(__BORLANDC__)
142
#  if (__BORLANDC__  >= 0x0520) 
142
#  if (__BORLANDC__  >= 0x0520)
143 143
  streambuf* bp;
144 144
#  endif
145 145
#endif
......
164 164
  adstring get_file_name(void);
165 165
  ~cifstream(){/*cout << "In cifstream destructor" << endl;*/}
166 166
#if defined(__BORLANDC__)
167
#  if (__BORLANDC__  > 0x0520) 
167
#  if (__BORLANDC__  > 0x0520)
168 168
      cifstream(const char*, int=0 , char cc = '#');
169 169
#  else
170 170
      cifstream(const char*, int = ios::nocreate, char cc = '#');
171 171
#  endif
172 172
#else
173
#  if defined(__GNUC__) 
174
#    if (__GNUC__  >= 3) 
173
#  if defined(__GNUC__)
174
#    if (__GNUC__  >= 3)
175 175
       cifstream(const char*, int = std::ios_base::in , char cc = '#');
176 176
#    else
177 177
       cifstream(const char*, int = ios::nocreate, char cc = '#');
178 178
#    endif
179 179
#  elif ( defined(__MSVC32__) && __MSVC32__ >=7)
180 180
       cifstream(const char*, int = std::ios_base::in , char cc = '#');
181
#  else  
181
#  else
182 182
     cifstream(const char*, int = ios::nocreate, char cc = '#');
183 183
#  endif
184 184
#endif
......
193 193
  #endif
194 194

  
195 195
#if defined(__BORLANDC__)
196
#  if (__BORLANDC__  > 0x0520) 
196
#  if (__BORLANDC__  > 0x0520)
197 197
  void open(const char*, int );
198 198
#  else
199 199
    void open(const char*, int = ios::nocreate);
200 200
#  endif
201 201
#else // not BORLAND
202
#  if defined(__GNUC__) 
203
#    if (__GNUC__  >= 3) 
202
#  if defined(__GNUC__)
203
#    if (__GNUC__  >= 3)
204 204
       void open(const char*, int);
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff