ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/utils/ElementsTable.cpp
(Generate patch)

Comparing trunk/OOPSE-4/src/utils/ElementsTable.cpp (file contents):
Revision 3448 by gezelter, Thu Sep 11 19:40:59 2008 UTC vs.
Revision 3450 by chuckv, Sun Sep 14 01:32:26 2008 UTC

# Line 29 | Line 29 | GNU General Public License for more details.
29   * @version 1.0
30   */
31  
32 + #include <iostream>
33   #include "config.h"
34   #include <cstdlib>
35   #include <string>
# Line 98 | Line 99 | namespace oopse {
99                                   elNeg, ionize, elAffin, red, green, blue,
100                                   name);
101        elements_.push_back(ele);
102 +
103      }
104    }
105  
# Line 320 | Line 322 | namespace oopse {
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    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines