29 |
|
* @version 1.0 |
30 |
|
*/ |
31 |
|
|
32 |
+ |
#include <iostream> |
33 |
|
#include "config.h" |
34 |
|
#include <cstdlib> |
35 |
|
#include <string> |
99 |
|
elNeg, ionize, elAffin, red, green, blue, |
100 |
|
name); |
101 |
|
elements_.push_back(ele); |
102 |
+ |
|
103 |
|
} |
104 |
|
} |
105 |
|
|
322 |
|
if ((*ifsP)) { |
323 |
|
while(ifsP->getline(charBuffer,BUFF_SIZE)) |
324 |
|
ParseLine(charBuffer); |
325 |
< |
|
326 |
< |
if (ifs1) |
327 |
< |
ifs1.close(); |
328 |
< |
if (ifs2) |
329 |
< |
ifs2.close(); |
330 |
< |
if (ifs3) |
331 |
< |
ifs3.close(); |
332 |
< |
if (ifs4) |
333 |
< |
ifs4.close(); |
334 |
< |
|
335 |
< |
if (GetSize() == 0) { |
336 |
< |
sprintf( painCave.errMsg, |
337 |
< |
"ElementsTable error.\n" |
338 |
< |
"\tCannot initialize database %s \n", filename_.c_str()); |
339 |
< |
painCave.isFatal = 0; |
340 |
< |
simError(); |
341 |
< |
} |
325 |
> |
|
326 |
> |
if (ifs1) |
327 |
> |
ifs1.close(); |
328 |
> |
if (ifs2) |
329 |
> |
ifs2.close(); |
330 |
> |
if (ifs3) |
331 |
> |
ifs3.close(); |
332 |
> |
if (ifs4) |
333 |
> |
ifs4.close(); |
334 |
> |
|
335 |
> |
if (GetSize() == 0) { |
336 |
> |
sprintf( painCave.errMsg, |
337 |
> |
"ElementsTable error.\n" |
338 |
> |
"\tCannot initialize database %s \n", filename_.c_str()); |
339 |
> |
painCave.isFatal = 0; |
340 |
> |
simError(); |
341 |
> |
} |
342 |
|
|
343 |
|
} |
344 |
|
|