24 |
|
*/ |
25 |
|
|
26 |
|
#include "io/ChargeAtomTypesSectionParser.hpp" |
27 |
< |
|
27 |
> |
#include "types/AtomType.hpp" |
28 |
> |
#include "UseTheForce/ForceField.hpp" |
29 |
|
namespace oopse { |
30 |
|
|
31 |
|
ChargeAtomTypesSectionParser::ChargeAtomTypesSectionParser() { |
43 |
|
} else { |
44 |
|
|
45 |
|
std::string atomTypeName = tokenizer.nextToken(); |
46 |
< |
AtomType* atomType = ff ->getAtomType(atomTypeName); |
46 |
> |
AtomType* atomType = ff.getAtomType(atomTypeName); |
47 |
|
|
48 |
|
if (atomType != NULL) { |
49 |
|
double charge = tokenizer.nextTokenAsDouble(); |
50 |
< |
atomType.addProperty(new DoubleGenericData("Charge", charge)); |
50 |
> |
atomType->addProperty(new DoubleGenericData("Charge", charge)); |
51 |
|
atomType->setCharge(); |
52 |
|
} |
53 |
|
|