23 #include "pybind11/pybind11.h"
28 namespace py = pybind11;
29 using namespace pybind11::literals;
36 py::module mod(
"defaultPolicyFile");
38 py::class_<DefaultPolicyFile, std::shared_ptr<DefaultPolicyFile>,
PolicyFile> cls(mod,
41 cls.def(py::init<const char* const, const std::string&, const std::string&, bool>(),
"productName"_a,
42 "filepath"_a,
"repos"_a =
"",
"strict"_a =
true);
44 cls.def(
"load", &DefaultPolicyFile::load);
45 cls.def(
"getRepositoryPath",
46 [](
DefaultPolicyFile const&
self) -> std::string {
return self.getRepositoryPath().native(); });
definition of the PolicyFile class
the definition of the DefaultPolicyFile class
a representation of a default Policy file that is stored as a file in the installation directory of a...
a representation of a file containing Policy parameter data.
PYBIND11_PLUGIN(defaultPolicyFile)