24 |
|
*/ |
25 |
|
|
26 |
|
#include "io/SectionParser.hpp" |
27 |
< |
|
27 |
> |
#include "utils/Trim.hpp" |
28 |
|
namespace oopse { |
29 |
|
|
30 |
< |
void SectionParser::parse(ifstrstream& input, ForceField& ff, int lineNo) { |
30 |
> |
void SectionParser::parse(std::istream& input, ForceField& ff, int lineNo) { |
31 |
|
const int bufferSize = 65535; |
32 |
|
char buffer[bufferSize]; |
33 |
|
std::string line; |
34 |
|
while(input.getline(buffer, bufferSize)) { |
35 |
< |
line = TrimLeft(buffer); |
35 |
> |
/**@todo */ |
36 |
> |
line = trimLeftCopy(buffer); |
37 |
|
//a line begins with "//" is comment |
38 |
|
if (isEndSection(line)) { |
39 |
|
break; |