Revision 1106 trunk/src/tools99/cifstrem.cpp

cifstrem.cpp (revision 1106)
2 2
 * $Id$
3 3
 *
4 4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California 
5
 * Copyright (c) 2008-2012 Regents of the University of California
6 6
 */
7 7
/**
8 8
\file cifstrem.cpp
......
45 45
    {
46 46
      signature_line[n++] = c;
47 47
      c = bp->snextc();
48
     // cout << "in sig testc= " << c << endl; 
48
     // cout << "in sig testc= " << c << endl;
49 49
    }
50 50
    signature_line[n++] = '\0';
51 51
    strcpy(comment_line, signature_line);
......
54 54
    while (c != '\n')
55 55
    {
56 56
      c = bp->snextc();
57
      //cout << "in sig testc= " << c << endl; 
57
      //cout << "in sig testc= " << c << endl;
58 58
    }
59 59

  
60 60
    // position buffer to first character of next  line
......
65 65
}
66 66

  
67 67
adstring cifstream::get_file_name(void)
68
{ 
68
{
69 69
  return file_name;
70 70
}
71 71

  
72
cifstream::cifstream(const char* fn, int open_m, char cc) 
72
cifstream::cifstream(const char* fn, int open_m, char cc)
73 73
#if defined (__MSVC32__) || defined (__WAT32__)
74 74
 : ifstream(fn, ios::in | open_m) , file_name(fn)
75 75
#elif defined(__BCPLUSPLUS__)
......
94 94
    bp = rdbuf();
95 95
  #endif
96 96
#if defined(__MSVC32__)
97
#  if (__MSVC32__  >= 7) 
97
#  if (__MSVC32__  >= 7)
98 98
    bp = rdbuf();
99 99
#  endif
100 100
#endif
101 101
#if defined(__BORLANDC__)
102
#  if (__BORLANDC__  >= 0x0520) 
102
#  if (__BORLANDC__  >= 0x0520)
103 103
    bp = rdbuf();
104 104
#  endif
105 105
#endif
......
120 120
  //HERE
121 121
  //char testc = bp->NEXTCHAR();
122 122
  char testc = bp->sgetc();
123
 // cout << "in filter testc= " << testc << endl; 
123
 // cout << "in filter testc= " << testc << endl;
124 124
  while (isspace(testc))
125 125
  {
126 126
    testc = bp->snextc();
127
 //   cout << "in filter testc= " << testc << endl; 
127
 //   cout << "in filter testc= " << testc << endl;
128 128
  }
129 129

  
130 130
  while ( (good()) && (testc == COMMENT_CHAR) && (testc != EOF))
......
137 137
	comment_line[n++] = testc;
138 138

  
139 139
      testc = bp->snextc();
140
      //cout << "in filter testc= " << testc << endl; 
140
      //cout << "in filter testc= " << testc << endl;
141 141
      if (testc == '\n')
142 142
      {
143 143
	comment_line[n++] = '\0';
......
198 198
    report_error("function: void cifstream::prefilter();"
199 199
        " Buffer size exceeded?");
200 200
  }
201
    
202 201

  
203 202
  if ( (!good()) || (testc == EOF))
204 203
  {
......
216 215
  (*this) >> t;
217 216
  s.realloc(t);
218 217
  delete [] t;
219
  return (*this); 
218
  return (*this);
220 219
}
221 220

  
222 221

  
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff