/*************************************************************************** pdbatomline.cpp - description ------------------- begin : Mon Feb 11 14:56:04 2002 copyright : (C) 2002 by Cavalli Andrea email : cavalli.unizh.ch **************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include using namespace Almost; PDBAtomLine::~PDBAtomLine(){ } PDBAtomLine::PDBAtomLine(string line, int k){ // 1 - 6 serial = atoi(string(line.begin()+6,line.begin()+11).c_str()); name = simplify(string(line.begin()+12,line.begin()+16)); //CHANGED Sep 22 //CHARMM bug //name = simplify(string(line.begin()+12,line.begin()+17)); altLoc= toupper(line[16]); resName = simplify(string(line.begin()+17,line.begin()+21)); chainID = line[21]; // cout<<"DEBUG >"<