Skip to content

Commit

Permalink
Merge pull request #85 from robotpy/nt-struct-topic-ctor
Browse files Browse the repository at this point in the history
pyntcore: Add struct topics constructors
  • Loading branch information
virtuald authored Mar 21, 2024
2 parents 89cd0e7 + 1d69815 commit 143c2b5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion subprojects/pyntcore/gen/StructArrayTopic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,14 @@ classes:
NT_Topic, I...:
ignore: true
Topic, I...:
ignore: true
param_override:
info:
name: type
cpp_code: |
[](Topic topic, const py::type &t) {
WPyStructInfo info(t);
return nt::StructArrayTopic<T, I>(topic, info);
}
Subscribe:
overloads:
U&&, const PubSubOptions&:
Expand Down
9 changes: 8 additions & 1 deletion subprojects/pyntcore/gen/StructTopic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,14 @@ classes:
NT_Topic, I...:
ignore: true
Topic, I...:
ignore: true
param_override:
info:
name: type
cpp_code: |
[](Topic topic, const py::type &t) {
WPyStructInfo info(t);
return nt::StructTopic<T, I>(topic, info);
}
Subscribe:
Publish:
PublishEx:
Expand Down

0 comments on commit 143c2b5

Please sign in to comment.