/*************************************************************************** pdbline.cpp - description ------------------- begin : Mon Feb 11 11:22:53 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 //#include string PDBLine::simplify(string str){ string ret; for(size_t i=0;i 1024 char line[1024]; in.getline(line,1024); _line= line; if(_line.size()>6){ //Type string type(_line.begin(),_line.begin()+6); _type = PDBType::keyword(simplify(type)); } else{ _type = PDBType::keyword(simplify(_line)); } //cout << simplify(type) <<"*"<<" "<< PDBType::keyword(simplify(type))<