9 pset_(pset), services_(pset_->popVParameterSet(std::string(
"services")).
release()) {
21 boost::shared_ptr<ParameterSet>
26 boost::shared_ptr<std::vector<ParameterSet> >
38 newpset.
addParameter<std::string>(
"@service_type", service);
43 typedef std::vector<ParameterSet>::iterator Iter;
45 std::string
name = it->getParameter<std::string>(
"@service_type");
46 if (name == service) {
59 typedef std::vector<ParameterSet>::iterator Iter;
61 std::string
name = it->getParameter<std::string>(
"@service_type");
62 if (name == service) {
72 std::vector<std::string>
const& forcedServices) {
74 for(std::vector<std::string>::const_iterator
i = defaultServices.begin(), iEnd = defaultServices.end();
79 for(std::vector<std::string>::const_iterator
i = forcedServices.begin(), iEnd = forcedServices.end();
87 for (std::vector<ParameterSet>::const_iterator it =
services_->begin(), itEnd =
services_->end(); it != itEnd; ++it) {
void addDefaultService(std::string const &service)
add a service if it's not already there
boost::shared_ptr< std::vector< ParameterSet > > services_
void addServices(std::vector< std::string > const &defaultServices, std::vector< std::string > const &forcedServices=std::vector< std::string >())
add some default services and forced services
void addService(ParameterSet &pset)
void addParameter(std::string const &name, T const &value)
void addForcedService(std::string const &service)
add a service and replace it if it's already there
boost::shared_ptr< ParameterSet > getProcessPSet() const
get the parameter set
boost::shared_ptr< ParameterSet > pset_
boost::shared_ptr< std::vector< ParameterSet > > getServicesPSets() const
get the descriptions of the services
ProcessDesc(boost::shared_ptr< ParameterSet > pset)