Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
dynamic-graph-python
Commits
a58a73a3
Commit
a58a73a3
authored
Sep 03, 2020
by
Guilhem Saurel
Browse files
dynamically add commands & signals
parent
35f3a254
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/dynamic-graph/python/module.hh
View file @
a58a73a3
...
...
@@ -70,6 +70,8 @@ inline auto exposeEntity() {
*/
bp
::
def
(
T
::
CLASS_NAME
.
c_str
(),
&
internal
::
makeEntity1
<
T
,
Options
>
);
bp
::
def
(
T
::
CLASS_NAME
.
c_str
(),
&
internal
::
makeEntity2
<
T
,
Options
>
);
if
(
!
(
Options
&
AddCommands
))
obj
.
def
(
"add_commands"
,
&
entity
::
addCommands
);
if
(
!
(
Options
&
AddSignals
))
obj
.
def
(
"add_signals"
,
&
entity
::
addSignals
);
return
obj
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment