17 #include <utility/tag/Tag.hh>
24 #include <utility/excn/Exceptions.hh>
34 using basic::resource_manager::ResourceOptionsOP;
35 using basic::resource_manager::ResourceOptions;
38 using std::stringstream;
53 return "SilentFileOptions";
64 ResourceOptions(name),
74 silent_struct_type_(src.silent_struct_type_)
84 string const & silent_struct_type
90 <<
"In SilentFileOptions,"
91 <<
" the silent_struct_type '" << silent_struct_type <<
"'"
92 <<
" was not recognized." << endl;
95 throw utility::excn::EXCN_BadInput(err_msg.str());
105 if(!tag->hasOption(
"silent_struct_type")){
106 throw utility::excn::EXCN_BadInput(
107 "The SilentFileOptions requires the tag 'silent_struct_type',"
108 " but it was not provided.");
115 stringstream err_msg;
117 <<
"In the SilentFileOptions with tag name '" << tag->getName() <<
"',"
119 <<
" was not recognized." << endl;
122 throw utility::excn::EXCN_BadInput(err_msg.str());