38 |
|
|
39 |
|
/** |
40 |
|
* @class DUFF DUFF.hpp "UseTheForce/DUFF.hpp" |
41 |
< |
* |
41 |
> |
* @brief Dipole United Atom Force Field Parser |
42 |
|
*/ |
43 |
|
class DUFF : public ForceField { |
44 |
|
public: |
45 |
+ |
DUFF(); |
46 |
|
virtual void parse(const std::string& filename = "DUFF.frc"); |
47 |
|
|
48 |
|
private: |
49 |
+ |
SectionParserManager spMan_; |
50 |
+ |
/* |
51 |
+ |
enum ParseState { |
52 |
+ |
AtomTypeSection, |
53 |
+ |
DirectionalAtomTypeSection, |
54 |
+ |
BondTypeSection, |
55 |
+ |
BendTypeSection, |
56 |
+ |
TorsionTypeSection, |
57 |
+ |
UnknownSection |
58 |
+ |
}; |
59 |
|
|
60 |
< |
void parseAtomType(); |
61 |
< |
void parseBondType(); |
62 |
< |
void parseBendType(); |
63 |
< |
void parseTorsionType(); |
64 |
< |
|
60 |
> |
ParseState getSection(const std::string& section); |
61 |
> |
|
62 |
> |
void parseAtomType(const std::string& line, int lineNo, int& ident); |
63 |
> |
void parseBondType(const std::string& line, int lineNo); |
64 |
> |
void parseBendType(const std::string& line, int lineNo); |
65 |
> |
void parseTorsionType(const std::string& line, int lineNo); |
66 |
> |
*/ |
67 |
|
}; |
68 |
|
|
69 |
|
//declare the funtion to create DUFF |