LSST Applications g0dd1f4853b+10f999ec6a,g1635faa6d4+87195dc7a7,g1653933729+a8ce1bb630,g28da252d5a+52e63b167c,g2bbee38e9b+de1ea1445d,g2bc492864f+de1ea1445d,g2cdde0e794+c2c89b37c4,g3156d2b45e+41e33cbcdc,g347aa1857d+de1ea1445d,g35bb328faa+a8ce1bb630,g3a166c0a6a+de1ea1445d,g3e281a1b8c+9f2c4e2fc3,g414038480c+077ccc18e7,g41af890bb2+91913bf47e,g531c6476d5+76a064336f,g5fbc88fb19+17cd334064,g781aacb6e4+a8ce1bb630,g7ab3e175f3+c50d54ced3,g80478fca09+fa8a736ab7,g82479be7b0+8047a7f847,g858d7b2824+76a064336f,g9125e01d80+a8ce1bb630,ga5288a1d22+c4b4c41fa2,gae0086650b+a8ce1bb630,gb58c049af0+d64f4d3760,gb9c6c11c1e+e06cc5572d,gc28159a63d+de1ea1445d,gcf0d15dbbd+b5ff149290,gd3624f51fd+4798c71331,gda3e153d99+76a064336f,gda6a2b7d83+b5ff149290,gdaeeff99f8+1711a396fd,ge2409df99d+1433a6c73d,ge33fd446bb+76a064336f,ge79ae78c31+de1ea1445d,gee3d5c6094+118f03e3d0,gf0baf85859+147a0692ba,gf3967379c6+02b11634a5,w.2024.45
LSST Data Management Base Package
Loading...
Searching...
No Matches
frame.cc
Go to the documentation of this file.
1// -*- LSST-C++ -*-
2/*
3 * This file is part of jointcal.
4 *
5 * Developed for the LSST Data Management System.
6 * This product includes software developed by the LSST Project
7 * (https://www.lsst.org).
8 * See the COPYRIGHT file at the top-level directory of this distribution
9 * for details of code ownership.
10 *
11 * This program is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program. If not, see <https://www.gnu.org/licenses/>.
23 */
24
25#include "pybind11/pybind11.h"
26
28
29#include "lsst/jointcal/Frame.h"
30
31namespace py = pybind11;
32using namespace pybind11::literals;
33
34namespace lsst {
35namespace jointcal {
36namespace {
37
38void declareFrame(lsst::cpputils::python::WrapperCollection &wrappers) {
39 using PyFrame = py::class_<Frame, std::shared_ptr<Frame>>;
40
41 wrappers.wrapType(PyFrame(wrappers.module, "Frame"), [](auto &mod, auto &cls) {
42 cls.def(py::init<Point const &, Point const &>(), "lowerLeft"_a, "upperRight"_a);
43 cpputils::python::addOutputOp(cls, "__str__");
44 });
45}
46} // namespace
47
49 declareFrame(wrappers);
50}
51
52} // namespace jointcal
53} // namespace lsst
A helper class for subdividing pybind11 module across multiple translation units (i....
Definition python.h:242
PyType wrapType(PyType cls, ClassWrapperCallback function, bool setModuleName=true)
Add a type (class or enum) wrapper, deferring method and other attribute definitions until finish() i...
Definition python.h:391
void wrapFrame(WrapperCollection &wrappers)
Definition frame.cc:48