mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
[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.
This commit is contained in:
86
ntcore/src/main/python/semiwrap/GenericEntry.yml
Normal file
86
ntcore/src/main/python/semiwrap/GenericEntry.yml
Normal file
@@ -0,0 +1,86 @@
|
||||
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();
|
||||
})
|
||||
Reference in New Issue
Block a user