1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
/*
* SPDX-FileCopyrightText: All Contributors to the PyTango project
*
* SPDX-License-Identifier: LGPL-3.0-or-later
*/
#include "common_header.h"
#include "convertors/type_casters.h"
void export_user_default_fwdattr_prop(py::module &m) {
py::class_<Tango::UserDefaultFwdAttrProp>(m, "UserDefaultFwdAttrProp")
.def(py::init<>())
.def("set_label",
&Tango::UserDefaultFwdAttrProp::set_label,
R"doc(
set_label(self, def_label: str) -> None
Set default label property
:param def_label: The user default label property
:type def_label: str)doc",
py::arg("def_label"));
}
void export_fwdattr(py::module &m) {
py::class_<Tango::FwdAttr>(m, "FwdAttr")
.def(py::init<const std::string &, const std::string &>())
.def("set_default_properties",
&Tango::FwdAttr::set_default_properties,
R"doc(
set_default_properties(self, prop: UserDefaultAttrProp) -> None
Set default attribute properties
:param prop: The user default property class
:type prop: UserDefaultAttrProp)doc",
py::arg("prop"));
}
|