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

Comparing branches/new_design/OOPSE-3.0/src/visitors/AtomVisitor.cpp (file contents):
Revision 1815 by tim, Wed Nov 10 22:01:06 2004 UTC vs.
Revision 1816 by tim, Wed Dec 1 19:10:51 2004 UTC

# Line 34 | Line 34 | bool SSDAtomVisitor::isSSDAtom(const string&atomType)
34   }
35  
36   bool SSDAtomVisitor::isSSDAtom(const string&atomType) {
37 <    vector<string>::iterator strIter;
37 >    std::vector<string>::iterator strIter;
38  
39      for( strIter = ssdAtomType.begin(); strIter != ssdAtomType.end();
40          ++strIter )
# Line 45 | Line 45 | void SSDAtomVisitor::visit(DirectionalAtom *datom) {
45   }
46  
47   void SSDAtomVisitor::visit(DirectionalAtom *datom) {
48 <    vector<AtomInfo *>atoms;
48 >    std::vector<AtomInfo *>atoms;
49  
50      //we need to convert SSD into 4 differnet atoms
51      //one oxygen atom, two hydrogen atoms and one pseudo atom which is the center of the mass
# Line 157 | Line 157 | const string SSDAtomVisitor::toString() {
157      setVisited(datom);
158   }
159  
160 < const string SSDAtomVisitor::toString() {
160 > const std::string SSDAtomVisitor::toString() {
161      char   buffer[65535];
162 <    string result;
162 >    std::string result;
163  
164      sprintf(buffer,
165              "------------------------------------------------------------------\n");
# Line 220 | Line 220 | void DefaultAtomVisitor::visit(DirectionalAtom *datom)
220          return;
221  
222      pos = datom->getPos();
223 <    u = datom->getUnitVector();
223 >    u = datom->getElectroFrame().getColumn(3);
224  
225      atomData = new AtomData;
226      atomData->setID("ATOMDATA");
# Line 241 | Line 241 | const string DefaultAtomVisitor::toString() {
241      setVisited(datom);
242   }
243  
244 < const string DefaultAtomVisitor::toString() {
244 > const std::string DefaultAtomVisitor::toString() {
245      char   buffer[65535];
246 <    string result;
246 >    std::string result;
247  
248      sprintf(buffer,
249              "------------------------------------------------------------------\n");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines