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 BondTypesSectionParser BondTypesSectionParser.hpp "io/BondTypesSectionParser.hpp" |
50 |
< |
*/ |
51 |
< |
class BondTypesSectionParser : public SectionParser { |
52 |
< |
public: |
53 |
< |
BondTypesSectionParser(); |
48 |
> |
/** |
49 |
> |
* @class BondTypesSectionParser BondTypesSectionParser.hpp "io/BondTypesSectionParser.hpp" |
50 |
> |
*/ |
51 |
> |
class BondTypesSectionParser : public SectionParser { |
52 |
> |
public: |
53 |
> |
BondTypesSectionParser(); |
54 |
|
|
55 |
< |
private: |
55 |
> |
private: |
56 |
|
|
57 |
< |
enum BondTypeEnum{ |
58 |
< |
btFixed, |
59 |
< |
btHarmonic, |
60 |
< |
btCubic, |
61 |
< |
btQuartic, |
62 |
< |
btPolynomial, |
63 |
< |
btUnknown |
64 |
< |
}; |
57 |
> |
enum BondTypeEnum{ |
58 |
> |
btFixed, |
59 |
> |
btHarmonic, |
60 |
> |
btCubic, |
61 |
> |
btQuartic, |
62 |
> |
btPolynomial, |
63 |
> |
btUnknown |
64 |
> |
}; |
65 |
|
|
66 |
< |
void parseLine(ForceField& ff, const std::string& line, int lineNo); |
66 |
> |
void parseLine(ForceField& ff, const std::string& line, int lineNo); |
67 |
|
|
68 |
< |
BondTypeEnum getBondTypeEnum(const std::string& str); |
68 |
> |
BondTypeEnum getBondTypeEnum(const std::string& str); |
69 |
|
|
70 |
< |
std::map<std::string, BondTypeEnum> stringToEnumMap_; |
71 |
< |
}; |
70 |
> |
std::map<std::string, BondTypeEnum> stringToEnumMap_; |
71 |
> |
}; |
72 |
|
|
73 |
|
|
74 |
|
} //namespace oopse |