18 #include <basic/Tracer.hh>
27 #include <utility/sql_database/DatabaseSessionManager.hh>
28 #include <utility/tag/Tag.hh>
29 #include <utility/vector1.hh>
32 #include <cppdb/frontend.h>
35 #define foreach BOOST_FOREACH
42 #include <utility/excn/Exceptions.hh>
43 #include <utility/vector0.hh>
51 using std::stringstream;
67 using utility::sql_database::sessionOP;
70 using cppdb::statement;
74 static Tracer
TR(
"protocols.features.HBondParameterFeatures");
103 return hb_database->report_parameter_features_schema_to_db(db_session);
109 dependencies.push_back(
"HBondFeatures");
121 if(tag->hasOption(
"scorefxn")){
122 string scorefxn_name = tag->getOption<
string>(
"scorefxn");
125 stringstream error_msg;
127 <<
"The " <<
type_name() <<
" reporter requires a 'scorefxn' tag:" << endl
129 <<
" <feature name=" <<
type_name() <<
" scorefxn=(name_of_score_function) />" << endl;
130 throw utility::excn::EXCN_RosettaScriptsOption(error_msg.str());
138 boost::uuids::uuid
const,
142 string const & database_tag(
143 scfxn_->energy_method_options().hbond_options().params_database_tag());
145 return hb_database->report_parameter_features(db_session);