23 #include <utility/tag/Tag.hh>
27 #include <utility/excn/Exceptions.hh>
33 using std::stringstream;
41 namespace loops_definers {
52 loop_list_(src.loop_list_)
71 if(!tag->hasOption(
"name")){
72 throw utility::excn::EXCN_RosettaScriptsOption(
73 "Unable to create unnamed LoopsDefiner (type: LoopsFile)" );
75 string const loops_name(tag->getOption<
string>(
"name"));
79 if(tag->hasOption(
"filename")){
80 filename = tag->getOption<
string>(
"filename");
83 err_msg <<
"Tag with name '" << loops_name <<
"' does not have the expected 'filename' field." << endl;
84 throw utility::excn::EXCN_RosettaScriptsOption(err_msg.str());
89 loop_list_ = lfd->resolve_as_serialized_loops( p );