ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/brains/MoleculeCreator.cpp
(Generate patch)

Comparing trunk/OOPSE-4/src/brains/MoleculeCreator.cpp (file contents):
Revision 1957 by tim, Tue Jan 25 17:45:23 2005 UTC vs.
Revision 1976 by tim, Fri Feb 4 22:44:15 2005 UTC

# Line 253 | Line 253 | RigidBody* MoleculeCreator::createRigidBody(MoleculeSt
253      //The third part is the index of the rigidbody defined in meta-data file
254      //For example, Butane_RB_0 is a valid rigid body name of butane molecule
255      /**@todo replace itoa by lexi_cast */
256 <    rb->setType(mol->getType() + "_RB_" + toString(mol->getNRigidBodies()));
257 <    
256 >    char buffer [33];  
257 >    sprintf(buffer, "%d", mol->getNRigidBodies());
258 >    //rb->setType(mol->getType() + "_RB_" + toString<int>(mol->getNRigidBodies()));
259 >    rb->setType(mol->getType() + "_RB_" + buffer);
260 >
261      return rb;
262   }    
263  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines