CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ProcessDesc.h
Go to the documentation of this file.
1 #ifndef FWCore_ParameterSet_ProcessDesc_h
2 #define FWCore_ParameterSet_ProcessDesc_h
3 
4 #include <memory>
5 #include <string>
6 #include <vector>
7 
8 namespace edm {
9 
10  class ParameterSet;
11 
12  class ProcessDesc {
13 
14  public:
15  explicit ProcessDesc(std::shared_ptr<ParameterSet> pset);
16 
18  explicit ProcessDesc(std::string const& config);
19 
20  ~ProcessDesc();
21 
23  std::shared_ptr<ParameterSet> getProcessPSet() const;
24 
26  std::shared_ptr<std::vector<ParameterSet> > getServicesPSets() const;
27 
28  void addService(ParameterSet& pset);
30  void addService(std::string const& service);
32  void addDefaultService(std::string const& service);
34  void addForcedService(std::string const& service);
36  void addServices(std::vector<std::string> const& defaultServices,
37  std::vector<std::string> const& forcedServices = std::vector<std::string>());
38 
39  std::string dump() const;
40  private:
41  std::shared_ptr<ParameterSet> pset_;
42  std::shared_ptr<std::vector<ParameterSet> > services_;
43  };
44 }
45 
46 #endif
std::shared_ptr< std::vector< ParameterSet > > getServicesPSets() const
get the descriptions of the services
Definition: ProcessDesc.cc:27
void addDefaultService(std::string const &service)
add a service if it&#39;s not already there
Definition: ProcessDesc.cc:42
std::shared_ptr< ParameterSet > pset_
Definition: ProcessDesc.h:41
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
Definition: ProcessDesc.cc:71
void addService(ParameterSet &pset)
Definition: ProcessDesc.cc:31
void addForcedService(std::string const &service)
add a service and replace it if it&#39;s already there
Definition: ProcessDesc.cc:58
std::shared_ptr< ParameterSet > getProcessPSet() const
get the parameter set
Definition: ProcessDesc.cc:22
std::string dump() const
Definition: ProcessDesc.cc:85
ProcessDesc(std::shared_ptr< ParameterSet > pset)
Definition: ProcessDesc.cc:8
std::shared_ptr< std::vector< ParameterSet > > services_
Definition: ProcessDesc.h:42