ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/io/DirectionalAtomTypesSectionParser.cpp
(Generate patch)

Comparing branches/new_design/OOPSE-3.0/src/io/DirectionalAtomTypesSectionParser.cpp (file contents):
Revision 1765 by tim, Mon Nov 22 20:55:52 2004 UTC vs.
Revision 1786 by tim, Fri Nov 26 02:13:56 2004 UTC

# Line 24 | Line 24
24   */
25  
26   #include "io/DirectionalAtomTypesSectionParser.hpp"
27 + #include "UseTheForce/ForceField.hpp"
28 + #include "types/DirectionalAtomType.hpp"
29  
30   namespace oopse {
31  
# Line 42 | Line 44 | void DirectionalAtomTypesSectionParser::parseLine(Forc
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();
# Line 51 | Line 53 | void DirectionalAtomTypesSectionParser::parseLine(Forc
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              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines