/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/PythonParameterSet/interface/MakePyBind11ParameterSets.h
31 строка
1 KB
Kevin Pedro
avoid unnecessary c-string conversions for pybind interface
14 сен 2023, 19:39
14 сен 2023, 19:39
2519f50
Код
Авторство
О чём код?
#ifndef FWCore_PyBind11ParameterSet_MakePyBind11ParameterSets_h #define FWCore_PyBind11ParameterSet_MakePyBind11ParameterSets_h //---------------------------------------------------------------------- // Declare functions used to create ParameterSets. //---------------------------------------------------------------------- #include <memory> #include <string> #include <vector> namespace edm { class ParameterSet; namespace cmspybind11 { // input can either be a python file name or a python config string std::unique_ptr<ParameterSet> readConfig(std::string const& config); /// same, but with arguments std::unique_ptr<ParameterSet> readConfig(std::string const& config, const std::vector<std::string>& args); /// essentially the same as the previous method void makeParameterSets(std::string const& configtext, std::unique_ptr<ParameterSet>& main); /**finds all the PSets used in the top level module referred as a file or as a string containing python commands. These PSets are bundled into a top level PSet from which they can be retrieved */ std::unique_ptr<ParameterSet> readPSetsFrom(std::string const& fileOrString); } // namespace cmspybind11 } // namespace edm #endif