32 #include <basic/Tracer.hh>
36 #include <utility/vector1.hh>
41 static basic::Tracer
tr(
"core.io.constraints");
46 namespace constraints {
85 tr.Warning << std::endl;
90 if ( !atom2_.
valid() ) {
102 func_->show_definition( out );
126 tr.Debug <<
"read: " << name1 <<
" " << name2 <<
" " << res1 <<
" " << res2 <<
" func: " << func_type << std::endl;
128 tr.Warning <<
"ignored constraint (no such atom in pose!)"
129 << name1 <<
" " << name2 <<
" " << res1 <<
" " << res2 << std::endl;
130 data.setstate( std::ios_base::failbit );
139 tr.Warning <<
"Error reading atoms: read in atom names("
140 << name1 <<
"," << name2 <<
"), "
141 <<
"and found AtomIDs (" <<
atom1_ <<
"," <<
atom2_ <<
")" << std::endl;
142 data.setstate( std::ios_base::failbit );
147 func_->read_data( data );
150 while( data.good() && (data.get() !=
'\n') ) {}
152 if (
tr.Debug.visible() ) {
153 func_->show_definition(
tr.Debug );
154 tr.Debug << std::endl;
184 if ( id1.valid() && id2.valid() ) {
195 id1.
rsd() = map[ id1.
rsd() ];
196 id2.
rsd() = map[ id2.
rsd() ];