1 |
< |
/* |
1 |
> |
/* |
2 |
|
* Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. |
3 |
|
* |
4 |
|
* The University of Notre Dame grants you ("Licensee") a |
45 |
|
#include "io/SectionParser.hpp" |
46 |
|
namespace oopse { |
47 |
|
|
48 |
< |
/** |
49 |
< |
* @class BendTypesSectionParser BendTypesSectionParser.hpp "io/BendTypesSectionParser.hpp" |
50 |
< |
*/ |
51 |
< |
class BendTypesSectionParser : public SectionParser { |
52 |
< |
public: |
53 |
< |
BendTypesSectionParser(); |
48 |
> |
/** |
49 |
> |
* @class BendTypesSectionParser BendTypesSectionParser.hpp "io/BendTypesSectionParser.hpp" |
50 |
> |
*/ |
51 |
> |
class BendTypesSectionParser : public SectionParser { |
52 |
> |
public: |
53 |
> |
BendTypesSectionParser(); |
54 |
|
|
55 |
< |
private: |
55 |
> |
private: |
56 |
|
|
57 |
< |
enum BendTypeEnum{ |
58 |
< |
btHarmonic, |
59 |
< |
btGhostBend, |
60 |
< |
btUreyBradley, |
61 |
< |
btCubic, |
62 |
< |
btQuartic, |
63 |
< |
btPolynomial, |
64 |
< |
btUnknown |
65 |
< |
}; |
57 |
> |
enum BendTypeEnum{ |
58 |
> |
btHarmonic, |
59 |
> |
btGhostBend, |
60 |
> |
btUreyBradley, |
61 |
> |
btCubic, |
62 |
> |
btQuartic, |
63 |
> |
btPolynomial, |
64 |
> |
btUnknown |
65 |
> |
}; |
66 |
|
|
67 |
< |
void parseLine(ForceField& ff, const std::string& line, int lineNo); |
67 |
> |
void parseLine(ForceField& ff, const std::string& line, int lineNo); |
68 |
|
|
69 |
< |
BendTypeEnum getBendTypeEnum(const std::string& str); |
69 |
> |
BendTypeEnum getBendTypeEnum(const std::string& str); |
70 |
|
|
71 |
< |
std::map<std::string, BendTypeEnum> stringToEnumMap_; |
72 |
< |
}; |
71 |
> |
std::map<std::string, BendTypeEnum> stringToEnumMap_; |
72 |
> |
}; |
73 |
|
|
74 |
|
|
75 |
|
} //namespace oopse |