26 #include <numeric/xyzVector.io.hh>
42 if( atom.
num == -123456 ) {
46 if( atom.
num != -12345 ) {
47 pdb.
atoms_.push_back(atom);
59 out <<
"SimplePDB:" << std::endl;
61 out <<
" " << *i << std::endl;
73 for(
int i = 0; i < 99; ++i ) smbuf[i] = 0;
74 strncpy(smbuf,buf+start,end-start+1);
75 std::istringstream iss(smbuf);
88 std::istream & in_raw,
93 in_raw.getline(buf,999);
99 if( atom.
ATOM !=
"ATOM " && atom.
ATOM !=
"HETATM" ) {
102 if( atom.
ATOM ==
"ENDMDL" ) {
107 read_stoopid<int >(buf, 6,10,atom.
num );
108 read_stoopid<string>(buf,11,16,atom.
type);
109 read_stoopid<string>(buf,17,20,atom.
res );
110 read_stoopid<char >(buf,21,21,atom.
chain );
111 read_stoopid<int >(buf,22,26,atom.
resnum );
112 read_stoopid<PackstatReal >(buf,29,37,atom.
x );
113 read_stoopid<PackstatReal >(buf,38,45,atom.
y );
114 read_stoopid<PackstatReal >(buf,46,54,atom.
z );
115 read_stoopid<PackstatReal >(buf,55,59,atom.
occ );
116 read_stoopid<PackstatReal >(buf,60,65,atom.
bfac );
117 read_stoopid<string>(buf,66,99,atom.
lastcol );
127 out << atom.
ATOM <<
" "
148 out <<
"Sphere( " << sphere.
xyz <<
", " << sphere.
radius <<
" )";