4 #include <boost/foreach.hpp>
29 namespace gp =
Gaudi::Parsers;
42 if ( !tmp.empty() && (
"UNKNOWN" != tmp) ) { m_dir_search_path = tmp ; }
44 if ( !tmp.empty() && (
"UNKNOWN" != tmp) ) { m_dump = tmp ; }
46 m_pmgr.declareProperty(
"TYPE" , m_source_type ) ;
47 m_pmgr.declareProperty(
"PATH" , m_source_path ) ;
48 m_pmgr.declareProperty(
"SEARCHPATH" , m_dir_search_path ) ;
49 m_pmgr.declareProperty(
"DUMPFILE" , m_dump ) ;
90 return m_svc_catalog.addProperty( client , p );
98 return m_svc_catalog.removeProperty(client,name);
117 cur != props->
end(); cur++)
125 <<
"Unable to set the property '" << (*cur)->name() <<
"'"
126 <<
" of '" << client <<
"'. "
127 <<
"Check option and algorithm names, type and bounds."
142 const gp::Catalog& catalog)
const {
152 log <<
MSG::INFO <<
"Properties are dumped into \""+file+
"\"" <<
endmsg ;
159 BOOST_FOREACH(
const gp::Catalog::value_type& client, catalog) {
160 for (gp::Catalog::CatalogSet::mapped_type::const_iterator current
161 = client.second.begin(); current != client.second.end();
163 StringProperty tmp (current->NameInClient(), current->ValueAsString()) ;
178 <<
"Reading options from the file "
179 <<
"'" << file <<
"'" <<
endmsg;
180 gp::Messages messages(my_log);
183 gp::PragmaOptions pragma;
191 if (pragma.IsPrintOptions()) {
195 if (pragma.IsPrintTree()) {
199 if (pragma.HasDumpFile()) {
200 dump(pragma.dumpFile(), catalog);
203 <<
"Job options successfully read in from " << file <<
endmsg;