25 #include <ObjexxFCL/format.hh>
27 #include <utility/vector1.hh>
28 #include <basic/Tracer.hh>
34 using namespace ObjexxFCL::fmt;
48 std::map < std::string, core::Real >
const & score_map,
49 std::map < std::string, std::string >
const & string_map,
52 using namespace ObjexxFCL;
54 std::map< std::string, Real >::const_iterator
pair;
55 std::map< std::string, std::string>::const_iterator string_pair;
58 if (print_sequence) out <<
"SEQUENCE: " << sequence_ << std::endl;
62 pair = score_map.find(
"total_score" );
63 if (
pair != score_map.end()) {
64 if (
pair->first.length() > 8 ) width =
pair->first.length();
65 out <<
' ' <<
A( width,
pair->first );
67 pair = score_map.find(
"score" );
68 if (
pair != score_map.end()) {
69 if (
pair->first.length() > 8 ) width =
pair->first.length();
70 out <<
' ' <<
A( width,
pair->first );
72 pair = score_map.find(
"rms" );
73 if (
pair != score_map.end()) {
74 if (
pair->first.length() > 8 ) width =
pair->first.length();
75 out <<
' ' <<
A( width,
pair->first );
78 for (
pair=score_map.begin();
pair!=score_map.end(); ++
pair )
80 if (
pair->first ==
"total_score" ||
pair->first ==
"score" ||
pair->first ==
"rms")
continue;
81 if (
pair->first.length() > 8 ) width =
pair->first.length();
82 out <<
' ' <<
A( width,
pair->first );
84 for ( string_pair=string_map.begin(); string_pair!=string_map.end(); ++string_pair )
86 width = std::max(
Size( std::max(string_pair->first.length(), string_pair->second.length() ) ),
Size(8) );
87 out <<
' ' <<
A( width, string_pair->first );
89 out <<
" description " << std::endl;
95 std::map < std::string, core::Real >
const & score_map,
96 std::map < std::string, std::string >
const & string_map
98 std::map< std::string, Real >::const_iterator
pair;
99 std::map< std::string, std::string>::const_iterator string_pair;
105 pair = score_map.find(
"total_score" );
106 if (pair != score_map.end()) {
107 if ( pair->first.length() > 8 ) width = pair->first.length();
108 out <<
' ' << F( width,
precision, pair->second );
110 pair = score_map.find(
"score" );
111 if (pair != score_map.end()) {
112 if ( pair->first.length() > 8 ) width = pair->first.length();
113 out <<
' ' << F( width,
precision, pair->second );
115 pair = score_map.find(
"rms" );
116 if (pair != score_map.end()) {
117 if ( pair->first.length() > 8 ) width = pair->first.length();
118 out <<
' ' << F( width,
precision, pair->second );
121 for ( pair=score_map.begin(); pair!=score_map.end(); ++
pair )
123 if (pair->first ==
"total_score" || pair->first ==
"score" || pair->first ==
"rms")
continue;
124 if ( pair->first.length() > 8 ) width = pair->first.length();
125 out <<
' ' << F( width,
precision, pair->second );
127 for ( string_pair=string_map.begin(); string_pair!=string_map.end(); ++string_pair )
129 width = std::max(
Size( std::max(string_pair->first.length(), string_pair->second.length() ) ),
Size(8) );
130 out <<
' ' <<
A( width, string_pair->second );
132 out <<
" " << decoy_tag_ << std::endl;
137 out <<
"Don't know how to print_conformation from RawStruct! Use a derived class!" << decoy_tag_ << std::endl;
141 basic::T(
"core.io.silent.RawStruct")
142 <<
"Warning: calling get_debug_rmsd() method of RawStruct!";