lsst.daf.persistence  14.0
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
logicalLocation.cc
Go to the documentation of this file.
1 #include "pybind11/pybind11.h"
2 #include "pybind11/stl.h"
3 
4 #include "lsst/daf/base/PropertySet.h"
6 
7 namespace py = pybind11;
8 
9 namespace lsst {
10 namespace daf {
11 namespace persistence {
12 
13 PYBIND11_PLUGIN(logicalLocation) {
14  py::module mod("logicalLocation");
15 
16  py::class_<LogicalLocation> cls(mod, "LogicalLocation");
17 
18  cls.def(py::init<std::string const&>());
19  cls.def(py::init<std::string const&, CONST_PTR(dafBase::PropertySet)>());
20  cls.def("locString", &LogicalLocation::locString);
21  cls.def_static("setLocationMap", LogicalLocation::setLocationMap);
22 
23  return mod.ptr();
24 }
25 
26 } // persistence
27 } // daf
28 } // lsst
PYBIND11_PLUGIN(dbAuth)
Definition: dbAuth.cc:11
std::string const & locString(void) const
Accessor.
static void setLocationMap(boost::shared_ptr< dafBase::PropertySet > map)
Set the logical-to-less-logical map.
Interface for LogicalLocation class.