Files
allwpilib/ntcore/src/main/python/semiwrap/GenericEntry.yml
PJ Reiniger 44b9cc1398 [robotpy] Mirror most other subprojects (#8208)
GitOrigin-RevId: ac60fd3cf4a24023184376687da28373d14b781a

This mirrors the robotpy files for the following projects:
- apriltag
- datalog
- hal
- ntcore
- romiVendordep
- wpilibc
- wpimath
- xrpVendordep

This excludes cscore and the halsim wrappers for at this time.

NOTE: This does not hook these projects up to the build system, just simply mirrors the files. The building will take place in a follow up PR to make it easier to review the changes necessary to build.
2025-10-23 22:28:04 -07:00

87 lines
1.9 KiB
YAML

extra_includes:
- src/nt_type_caster.h
classes:
nt::GenericSubscriber:
methods:
GenericSubscriber:
overloads:
'':
ignore: true
NT_Subscriber:
ignore: true
Get:
GetBoolean:
GetInteger:
GetFloat:
GetDouble:
GetString:
GetRaw:
GetBooleanArray:
GetIntegerArray:
GetFloatArray:
GetDoubleArray:
GetStringArray:
ReadQueue:
GetTopic:
nt::GenericPublisher:
methods:
GenericPublisher:
overloads:
'':
ignore: true
NT_Publisher:
ignore: true
Set:
SetBoolean:
SetInteger:
SetFloat:
SetDouble:
SetString:
SetRaw:
SetBooleanArray:
overloads:
std::span<const bool>, int64_t:
std::span<const int>, int64_t:
SetIntegerArray:
SetFloatArray:
SetDoubleArray:
SetStringArray:
SetDefault:
SetDefaultBoolean:
SetDefaultInteger:
SetDefaultFloat:
SetDefaultDouble:
SetDefaultString:
SetDefaultRaw:
SetDefaultBooleanArray:
SetDefaultIntegerArray:
SetDefaultFloatArray:
SetDefaultDoubleArray:
SetDefaultStringArray:
GetTopic:
nt::GenericEntry:
methods:
GenericEntry:
overloads:
'':
ignore: true
NT_Entry:
ignore: true
GetHandle:
ignore: true
GetTopic:
Unpublish:
inline_code: |
.def("close", [](GenericEntry *self) {
py::gil_scoped_release release;
*self = GenericEntry();
}, py::doc("Destroys the entry"))
.def("__enter__", [](GenericEntry *self) {
return self;
})
.def("__exit__", [](GenericEntry *self, py::args args) {
py::gil_scoped_release release;
*self = GenericEntry();
})