23 #include "pybind11/pybind11.h" 28 namespace py = pybind11;
36 using PyPersistable = py::class_<Persistable, std::shared_ptr<Persistable>>;
39 py::module mod(
"persistable");
40 py::module::import(
"lsst.afw.fits");
44 (
void (
Persistable::*)(std::string
const &, std::string
const &)
const) & Persistable::writeFits,
45 "fileName"_a,
"mode"_a =
"w");
47 Persistable::writeFits,
48 "manager"_a,
"mode"_a =
"w");
49 cls.def(
"isPersistable", &Persistable::isPersistable);
A base class for objects that can be persisted via afw::table::io Archive classes.
A base class for image defects.
Lifetime-management for memory that goes into FITS memory files.
py::class_< Persistable, std::shared_ptr< Persistable > > PyPersistable
PYBIND11_PLUGIN(persistable)