23 #include "pybind11/pybind11.h"
27 namespace py = pybind11;
28 using namespace pybind11::literals;
35 py::module mod(
"policyString");
37 py::class_<PolicyString, std::shared_ptr<PolicyString>,
PolicySource> cls(mod,
"PolicyString");
39 cls.def(py::init<const std::string&, const SupportedFormats::Ptr&>(),
"data"_a,
40 "fmts"_a = PolicyString::defaultFormats);
42 cls.def(py::init<const SupportedFormats::Ptr&>(),
"fmts"_a = PolicyString::defaultFormats);
an abstract class representing a source of serialized Policy parameter data.
PYBIND11_PLUGIN(defaultPolicyFile)
definition of the PolicyString class