24 |
|
*/ |
25 |
|
|
26 |
|
#include "io/DirectionalAtomTypesSectionParser.hpp" |
27 |
+ |
#include "UseTheForce/ForceField.hpp" |
28 |
+ |
#include "types/DirectionalAtomType.hpp" |
29 |
|
|
30 |
|
namespace oopse { |
31 |
|
|
44 |
|
} else { |
45 |
|
|
46 |
|
std::string atomTypeName = tokenizer.nextToken(); |
47 |
< |
AtomType* atomType = ff ->getAtomType(atomTypeName); |
47 |
> |
AtomType* atomType = ff.getAtomType(atomTypeName); |
48 |
|
DirectionalAtomType* dAtomType; |
49 |
|
if (atomType == NULL) { |
50 |
|
dAtomType = new DirectionalAtomType(); |
53 |
|
atomType->setName(atomTypeName); |
54 |
|
ff.addAtomType(atomTypeName, atomType) |
55 |
|
} else { |
56 |
< |
dAtomType = dynamic_cast<DirectionalAtom*>(atomType); |
56 |
> |
dAtomType = dynamic_cast<DirectionalAtomType*>(atomType); |
57 |
|
if (dAtomType == NULL) { |
58 |
|
std::cerr << "DirectionalAtomTypesSectionParser:: Can not cast to DirectionalAtomType" << std::endl; |
59 |
|
} |