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

Comparing trunk/OOPSE-4/src/io/SectionParser.hpp (file contents):
Revision 2204 by gezelter, Fri Apr 15 22:04:00 2005 UTC vs.
Revision 2211 by chrisfen, Thu Apr 21 14:12:19 2005 UTC

# Line 48 | Line 48 | namespace oopse {
48   #include "utils/StringTokenizer.hpp"
49  
50   namespace oopse {
51 <
51 >  
52    class ForceField;
53 <
53 >  
54    /**
55 <   * @class SectionParser SectionParser.hpp "io/SectionParser.hpp"
55 >  * @class SectionParser SectionParser.hpp "io/SectionParser.hpp"
56     * @todo document
57     */
58    class SectionParser {
59    public:
60      virtual ~SectionParser() {}
61      void parse(std::istream& input, ForceField& ff, int lineNo);
62 <
62 >    
63      const std::string& getSectionName() const {
64        return sectionName_;
65      }
66 <
66 >    
67    protected:
68      void setSectionName(const std::string& sectionName) {
69        sectionName_ = sectionName;
70      }
71 <            
71 >    
72    private:
73
73      bool isEndSection(const std::string& line);
74      virtual void parseLine(ForceField& ff, const std::string& line, int lineNo) = 0;
75      std::string sectionName_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines