26 |
|
#ifndef IO_SECTIONPARSER_HPP |
27 |
|
#define IO_SECTIONPARSER_HPP |
28 |
|
|
29 |
+ |
#include <iostream> |
30 |
+ |
#include <string> |
31 |
+ |
|
32 |
+ |
#include "utils/StringTokenizer.hpp" |
33 |
+ |
|
34 |
|
namespace oopse { |
35 |
|
|
36 |
|
class ForceField; |
41 |
|
*/ |
42 |
|
class SectionParser { |
43 |
|
public: |
44 |
< |
void parse(std::istream&, ForceFiled* ff, int lineNo); |
44 |
> |
void parse(std::istream&, ForceField* ff, int lineNo); |
45 |
|
|
46 |
|
const std::string& getSectionName() const { |
47 |
< |
sectionName_; |
47 |
> |
return sectionName_; |
48 |
|
} |
49 |
|
|
50 |
|
protected: |
55 |
|
private: |
56 |
|
|
57 |
|
bool isEndSection(const std::string& line); |
58 |
< |
virtual void parseLine(ForceFiled& ff, const std::string& line, int lineNo) = 0; |
58 |
> |
virtual void parseLine(ForceField& ff, const std::string& line, int lineNo) = 0; |
59 |
|
std::string sectionName_; |
60 |
|
}; |
61 |
|
|