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

Comparing branches/new_design/OOPSE-4/src/io/BendTypesSectionParser.hpp (file contents):
Revision 1768 by tim, Tue Nov 23 04:35:55 2004 UTC vs.
Revision 1801 by tim, Tue Nov 30 04:43:29 2004 UTC

# Line 25 | Line 25
25  
26   #ifndef IO_BENDTYPESSECTIONPARSER_HPP
27   #define IO_BENDTYPESSECTIONPARSER_HPP
28 <
28 > #include <map>
29   #include "io/SectionParser.hpp"
30   namespace oopse {
31  
# Line 33 | Line 33 | namespace oopse {
33       * @class BendTypesSectionParser BendTypesSectionParser.hpp "io/BendTypesSectionParser.hpp"
34       */
35      class BendTypesSectionParser : public SectionParser {
36 +        public:
37 +            BendTypesSectionParser();
38 +            
39          private:
40 <            void parseLine(ForceFiled& ff, const std::string& line, int lineNo);
40 >
41 >            enum BendTypeEnum{
42 >                btHarmonic,
43 >                btGhostBend,
44 >                btUreyBradley,
45 >                btCubic,
46 >                btQuartic,
47 >                btPolynomial,
48 >                btUnknown
49 >            };
50              
51 +            void parseLine(ForceField& ff, const std::string& line, int lineNo);
52 +
53 +            BendTypeEnum getBendTypeEnum(const std::string& str);  
54 +
55 +            std::map<std::string, BendTypeEnum> stringToEnumMap_;              
56      };
57  
58  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines