23 #include "pybind11/pybind11.h" 35 py::class_<PolicyString, std::shared_ptr<PolicyString>,
PolicySource>
cls(mod,
"PolicyString");
37 cls.def(py::init<const std::string&, const SupportedFormats::Ptr&>(),
"data"_a,
38 "fmts"_a = PolicyString::defaultFormats);
40 cls.def(py::init<const SupportedFormats::Ptr&>(),
"fmts"_a = PolicyString::defaultFormats);
PYBIND11_MODULE(policyString, mod)
an abstract class representing a source of serialized Policy parameter data.
A base class for image defects.
definition of the PolicyString class