4 #include <boost/foreach.hpp>
29 namespace gp =
Gaudi::Parsers;
41 if ( !tmp.empty() && (
"UNKNOWN" != tmp) ) { m_dir_search_path = tmp ; }
43 if ( !tmp.empty() && (
"UNKNOWN" != tmp) ) { m_dump = tmp ; }
45 m_pmgr.declareProperty(
"TYPE" , m_source_type ) ;
46 m_pmgr.declareProperty(
"PATH" , m_source_path ) ;
47 m_pmgr.declareProperty(
"SEARCHPATH" , m_dir_search_path ) ;
48 m_pmgr.declareProperty(
"DUMPFILE" , m_dump ) ;
89 return m_svc_catalog.addProperty( client , p );
97 return m_svc_catalog.removeProperty(client,name);
116 cur != props->
end(); cur++)
124 <<
"Unable to set the property '" << (*cur)->name() <<
"'"
125 <<
" of '" << client <<
"'. "
126 <<
"Check option and algorithm names, type and bounds."
141 const gp::Catalog& catalog)
const {
151 log <<
MSG::INFO <<
"Properties are dumped into \""+file+
"\"" <<
endmsg ;
158 BOOST_FOREACH(
const gp::Catalog::value_type& client, catalog) {
159 for (gp::Catalog::CatalogSet::mapped_type::const_iterator current
160 = client.second.begin(); current != client.second.end();
162 StringProperty tmp (current->NameInClient(), current->ValueAsString()) ;
177 <<
"Reading options from the file "
178 <<
"'" << file <<
"'" <<
endmsg;
179 gp::Messages messages(my_log);
182 gp::PragmaOptions pragma;
190 if (pragma.IsPrintOptions()) {
194 if (pragma.IsPrintTree()) {
198 if (pragma.HasDumpFile()) {
199 dump(pragma.dumpFile(), catalog);
202 <<
"Job options successfully read in from " << file <<
endmsg;