/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/ParameterSet/interface/ProcessDesc.h
51 строка
2 KB
W. David Dagenhart
Only changes from scram build code-format-all
30 апр 2019, 22:05
30 апр 2019, 22:05
23d7339
Код
Авторство
О чём код?
#ifndef FWCore_ParameterSet_ProcessDesc_h #define FWCore_ParameterSet_ProcessDesc_h #include <memory> #include <string> #include <vector> #include "FWCore/Utilities/interface/get_underlying_safe.h" namespace edm { class ParameterSet; class ProcessDesc { public: explicit ProcessDesc(std::shared_ptr<ParameterSet> pset); explicit ProcessDesc(std::unique_ptr<ParameterSet> pset); /// construct from the configuration language string explicit ProcessDesc(std::string const& config); ~ProcessDesc(); /// get the parameter set std::shared_ptr<ParameterSet const> getProcessPSet() const { return get_underlying_safe(pset_); } std::shared_ptr<ParameterSet>& getProcessPSet() { return get_underlying_safe(pset_); } /// get the descriptions of the services auto const& getServicesPSets() const { return services_; } auto& getServicesPSets() { return services_; } void addService(ParameterSet& pset); /// add a service as an empty pset void addService(std::string const& service); /// add a service if it's not already there void addDefaultService(std::string const& service); /// add a service and replace it if it's already there void addForcedService(std::string const& service); /// add some default services and forced services void addServices(std::vector<std::string> const& defaultServices, std::vector<std::string> const& forcedServices = std::vector<std::string>()); std::string dump() const; private: edm::propagate_const<std::shared_ptr<ParameterSet>> pset_; std::vector<ParameterSet> services_; }; } // namespace edm #endif